Class: CreateTasks
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateTasks
- Defined in:
- lib/trackington/db/migrate/20160209154117_create_tasks.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/trackington/db/migrate/20160209154117_create_tasks.rb', line 2 def change create_table :tasks do |t| t.string :title t.string :description t.integer :time_planned t.integer :time_actual t.integer :priority # Blocker, Critical, Major, Minor, Trivial t.integer :type # Epic, Bug, Improvement, New Feature, Story, Task t.integer :status t.integer :assigned_to # should be belongs_to :user t.integer :created_by # should be belongs_to :user end end |