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