fedibird-fe/db/migrate/20210706063140_create_status_expires.rb

12 lines
355 B
Ruby
Raw Normal View History

2021-07-16 06:38:50 +00:00
class CreateStatusExpires < ActiveRecord::Migration[6.1]
def change
create_table :status_expires do |t|
t.references :status, null: false, foreign_key: { on_delete: :cascade }, index: { unique: true }
t.datetime :expires_at, null: false, index: true
t.integer :action, default: 0, null: false
t.timestamps
end
end
end