Soc/db/migrate/20231229114145_create_exerc...

12 lines
257 B
Ruby

class CreateExercises < ActiveRecord::Migration[7.1]
def change
create_table :exercises do |t|
t.references :exercise_type, null: false, foreign_key: true
t.time :at
t.float :amount, null: false
t.timestamps
end
end
end