mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 08:53:54 +08:00
18 lines
420 B
Ruby
18 lines
420 B
Ruby
# 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
|