20160314164231_add_owner_to_application.rb 333 B

1234567891011
  1. # frozen_string_literal: true
  2. class AddOwnerToApplication < ActiveRecord::Migration[4.2]
  3. def change
  4. change_table(:oauth_applications, bulk: true) do |t|
  5. t.column :owner_id, :integer, null: true
  6. t.column :owner_type, :string, null: true
  7. end
  8. add_index :oauth_applications, [:owner_id, :owner_type]
  9. end
  10. end