config/db/migrate/20240211182231_create_moods.rb

9 lines
204 B
Ruby
Raw Normal View History

2024-02-11 22:19:19 +01:00
class CreateMoods < ActiveRecord::Migration[7.1]
def change
create_table :moods do |t|
t.string :mode, null: false
t.datetime :recorded_at, precision: nil, null: false
end
end
end