12345678910111213 |
- class CreateRecords < ActiveRecord::Migration[6.1]
- def change
- create_table :records do |t|
- t.integer :duration, null: false
- t.references :user, null: false
- t.references :task, null: false
- t.boolean :is_handled, default: false
- t.references :handled_by, default: nil, null: true
-
- t.timestamps
- end
- end
- end
|