mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
15 lines
354 B
Ruby
15 lines
354 B
Ruby
|
|
# 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
|
||
|
|
t.line_string :path, srid: 3785, null: false
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|