about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-26 23:55:21 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-26 23:56:53 +0200
commit7e14eefc819ce27f45406452a4f8e2039d0f0886 (patch)
treea58bb240cff3a247b154362a0106369789a04ad1 /db/migrate
parent210362e66578dae32cbf169884d3c2905fe32cb7 (diff)
Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - app
registration API
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160926213048_remove_owner_from_application.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20160926213048_remove_owner_from_application.rb b/db/migrate/20160926213048_remove_owner_from_application.rb
new file mode 100644
index 000000000..a42f53a29
--- /dev/null
+++ b/db/migrate/20160926213048_remove_owner_from_application.rb
@@ -0,0 +1,7 @@
+class RemoveOwnerFromApplication < ActiveRecord::Migration[5.0]
+  def change
+    remove_index :oauth_applications, [:owner_id, :owner_type]
+    remove_column :oauth_applications, :owner_id, :integer, null: true
+    remove_column :oauth_applications, :owner_type, :string, null: true
+  end
+end