fedibird-fe/db/migrate/20230215062659_add_generator_to_status.rb
2023-02-27 15:05:33 +09:00

5 lines
218 B
Ruby

class AddGeneratorToStatus < ActiveRecord::Migration[6.1]
def change
safety_assured { add_reference :statuses, :generator, null: true, default: nil, foreign_key: { on_delete: :cascade }, index: false }
end
end