discourse/db/migrate/20220519190829_create_user_...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
420 B
Ruby
Raw Normal View History

2022-05-27 05:15:14 -04:00
# frozen_string_literal: true
class CreateUserStatuses < ActiveRecord::Migration[7.0]
def up
create_table :user_statuses, id: false do |t|
t.integer :user_id, primary_key: true, null: false
t.string :emoji, null: true
t.string :description, null: false
t.datetime :set_at, null: false
t.datetime :ends_at, null: true
end
end
def down
drop_table :user_statuses
end
end