2023-07-12 07:47:08 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-26 21:55:21 +00:00
|
|
|
class RemoveOwnerFromApplication < ActiveRecord::Migration[5.0]
|
|
|
|
def change
|
2023-11-06 16:15:48 +00: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-26 21:55:21 +00:00
|
|
|
end
|
|
|
|
end
|