Class: CreateSprints

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/trackington/db/migrate/20160209153945_create_sprints.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/trackington/db/migrate/20160209153945_create_sprints.rb', line 2

def change
  create_table :sprints do |t|
    t.date :start_time
    t.date :end_time
    t.boolean :is_backlog

    t.belongs_to :project, index: true
  end
end