fix down-migration: add_column should have been remove_column
[arvados.git] / services / api / db / schema.rb
index 37a9586c901377eca89a8b72b6a3edb3c32c01e2..fe92304aff3b37360534bfbeacf61ad16a6ee04d 100644 (file)
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version => 20130708163414) do
+ActiveRecord::Schema.define(:version => 20130724153034) do
 
   create_table "api_client_authorizations", :force => true do |t|
-    t.string   "api_token",               :null => false
-    t.integer  "api_client_id",           :null => false
-    t.integer  "user_id",                 :null => false
+    t.string   "api_token",                                           :null => false
+    t.integer  "api_client_id",                                       :null => false
+    t.integer  "user_id",                                             :null => false
     t.string   "created_by_ip_address"
     t.string   "last_used_by_ip_address"
     t.datetime "last_used_at"
@@ -24,6 +24,7 @@ ActiveRecord::Schema.define(:version => 20130708163414) do
     t.datetime "created_at"
     t.datetime "updated_at"
     t.string   "default_owner_uuid"
+    t.text     "scopes",                  :default => "---\n- all\n", :null => false
   end
 
   add_index "api_client_authorizations", ["api_client_id"], :name => "index_api_client_authorizations_on_api_client_id"
@@ -173,8 +174,8 @@ ActiveRecord::Schema.define(:version => 20130708163414) do
     t.string   "script"
     t.string   "script_version"
     t.text     "script_parameters"
-    t.string   "cancelled_by_client"
-    t.string   "cancelled_by_user"
+    t.string   "cancelled_by_client_uuid"
+    t.string   "cancelled_by_user_uuid"
     t.datetime "cancelled_at"
     t.datetime "started_at"
     t.datetime "finished_at"
@@ -398,7 +399,7 @@ ActiveRecord::Schema.define(:version => 20130708163414) do
     t.boolean  "is_admin"
     t.text     "prefs"
     t.datetime "updated_at"
-    t.string   "default_owner"
+    t.string   "default_owner_uuid"
     t.boolean  "is_active",               :default => false
   end