rosa-build/db/migrate/20111216134039_create_issue...

21 lines
400 B
Ruby
Raw Permalink Normal View History

class CreateIssues < ActiveRecord::Migration
def self.up
create_table :issues do |t|
2014-03-14 17:41:49 +00:00
t.integer :serial_id, references: nil
t.integer :project_id
t.integer :user_id
t.string :title
t.text :body
t.string :status
t.timestamps
end
2014-01-21 04:51:49 +00:00
add_index :issues, [:project_id, :serial_id], unique: true
end
def self.down
drop_table :issues
end
end