Sha256: a91bfed12f97f2715e06959115275ac0128a44e9987ec27892a50221b0938cf3

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

class CreateSprints < ActiveRecord::Migration
  def change
    create_table :sprints do |t|
      t.integer :project_id, null: false
      t.date :end_date
      
      t.timestamps
    end
    
    add_index :sprints, [:project_id, :end_date]
    
    add_column :tickets, :sprint_id, :integer
    add_index :tickets, :sprint_id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
houston-core-0.5.0.beta1 db/migrate/20131012152403_create_sprints.rb