mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
16 lines
355 B
Ruby
16 lines
355 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class CreateTrips < ActiveRecord::Migration[7.2]
|
||
|
|
def change
|
||
|
|
create_table :trips do |t|
|
||
|
|
t.string :name, null: false
|
||
|
|
t.datetime :started_at, null: false
|
||
|
|
t.datetime :ended_at, null: false
|
||
|
|
t.text :notes
|
||
|
|
t.references :user, null: false, foreign_key: true
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|