Soc/db/migrate/20240106093517_create_learn...

14 lines
342 B
Ruby

class CreateLearningGoals < ActiveRecord::Migration[7.1]
def change
create_table :learning_goals do |t|
t.string :title, null: false
t.date :starts_on
t.date :ends_on
t.boolean :completed, null: false, default: false
t.references :user, null: false, foreign_key: true
t.timestamps
end
end
end