Add workouts
This commit is contained in:
12
db/migrate/20230424120318_create_workouts.rb
Normal file
12
db/migrate/20230424120318_create_workouts.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
ROM::SQL.migration do
|
||||
change do
|
||||
create_table :workouts do
|
||||
primary_key :id
|
||||
column :path, :text, null: false
|
||||
column :distance, :float, null: false
|
||||
column :published_at, :timestamp
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user