20160926213048_remove_owner_from_application.rb 362 B

1234567891011
  1. # frozen_string_literal: true
  2. class RemoveOwnerFromApplication < ActiveRecord::Migration[5.0]
  3. def change
  4. change_table(:oauth_applications, bulk: true) do |t|
  5. t.remove_index [:owner_id, :owner_type]
  6. t.remove :owner_id, type: :integer, options: { null: true }
  7. t.remove :owner_type, type: :string, options: { null: true }
  8. end
  9. end
  10. end