fedibird-fe/db/migrate/20230215062659_add_generator_to_status.rb

6 lines
218 B
Ruby
Raw Permalink Normal View History

2023-02-15 08:04:19 +00:00
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