1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 22:38:27 +09:00
mastodon/db/migrate/20160926213048_remove_owner_from_application.rb
2023-11-06 16:15:48 +00:00

12 lines
362 B
Ruby

# frozen_string_literal: true
class RemoveOwnerFromApplication < ActiveRecord::Migration[5.0]
def change
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
end
end