2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2018-11-13 02:27:31 -05:00
|
|
|
class AddOwnerToApplication < ActiveRecord::Migration[4.2]
|
2014-12-19 09:15:29 -05:00
|
|
|
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
|