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