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.

20210510133939_create_tasks.rb 458B

1234567891011121314151617
  1. class CreateTasks < ActiveRecord::Migration[6.1]
  2. def change
  3. create_table :tasks do |t|
  4. t.string :name, null: false
  5. t.index :name
  6. t.text :description
  7. t.datetime :start_time, null: false
  8. t.datetime :end_time, default: nil
  9. t.boolean :is_paid, default: false
  10. t.references :paid_by, default: nil
  11. t.references :activity, null: false
  12. t.references :owner, null: false
  13. t.timestamps
  14. end
  15. end
  16. end