dawarich/db/migrate/20250123145954_create_tracks.rb

15 lines
354 B
Ruby
Raw Normal View History

2025-01-23 10:03:21 -05:00
# frozen_string_literal: true
class CreateTracks < ActiveRecord::Migration[8.0]
def change
create_table :tracks do |t|
t.datetime :started_at, null: false
t.datetime :ended_at, null: false
t.references :user, null: false, foreign_key: true
2025-01-24 06:01:54 -05:00
t.line_string :path, srid: 3857, null: false
2025-01-23 10:03:21 -05:00
t.timestamps
end
end
end