class CreateStories < ActiveRecord::Migration
  def change
    create_table :stories do |t|
      t.integer :project_id
      t.integer :epic_id
      t.integer :label_ids, array: true
      t.string :name
      t.integer :estimate
      t.string :current_state
      t.datetime :accepted_at

      t.timestamps null: false
    end

    add_index :stories, :project_id
    add_index :stories, :epic_id
  end
end
