Class: AddOwnerToApplication

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
# File 'lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb', line 2

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