API de comptabilité horaire.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20210511212634_create_records.rb 351B

12345678910111213
  1. class CreateRecords < ActiveRecord::Migration[6.1]
  2. def change
  3. create_table :records do |t|
  4. t.integer :duration, null: false
  5. t.references :user, null: false
  6. t.references :task, null: false
  7. t.boolean :is_handled, default: false
  8. t.references :handled_by, default: nil, null: true
  9. t.timestamps
  10. end
  11. end
  12. end