2023-07-12 16:47:08 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-27 06:55:21 +09:00
|
|
|
class RemoveOwnerFromApplication < ActiveRecord::Migration[5.0]
|
|
|
|
def change
|
2023-11-07 01:15:48 +09:00
|
|
|
change_table(:oauth_applications, bulk: true) do |t|
|
|
|
|
t.remove_index [:owner_id, :owner_type]
|
|
|
|
t.remove :owner_id, type: :integer, options: { null: true }
|
|
|
|
t.remove :owner_type, type: :string, options: { null: true }
|
|
|
|
end
|
2016-09-27 06:55:21 +09:00
|
|
|
end
|
|
|
|
end
|