1 # This migration comes from issues (originally 20131120190218)
2 class CreateIssuesIssues < ActiveRecord::Migration
4 create_table :issues_issues do |t|
6 t.string :state, :null => false
7 t.integer :issue_id, :null => false
8 t.integer :project_id, :null => false
9 t.integer :user_id, :null => false
10 t.string :title, :null => false
16 add_index :issues_issues, [:issue_id, :project_id], :unique => true
17 add_index :issues_issues, [:user_id, :project_id]