diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-14 17:49:13 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-14 17:49:13 +0100 |
commit | 6fec8afc3f91166930c8b4dfca441a5a70a24d5b (patch) | |
tree | 4cd02810b87de1dccf7b96630910921d76357921 /db/migrate | |
parent | 25d7c1b6eaf03ddaec892c82f7d93a128b79a872 (diff) |
Bind oauth applications to users
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160314164231_add_owner_to_application.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20160314164231_add_owner_to_application.rb b/db/migrate/20160314164231_add_owner_to_application.rb new file mode 100644 index 000000000..7d5e6d07d --- /dev/null +++ b/db/migrate/20160314164231_add_owner_to_application.rb @@ -0,0 +1,7 @@ +class AddOwnerToApplication < ActiveRecord::Migration + def change + add_column :oauth_applications, :owner_id, :integer, null: true + add_column :oauth_applications, :owner_type, :string, null: true + add_index :oauth_applications, [:owner_id, :owner_type] + end +end \ No newline at end of file |