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

22 lines
413 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
class CreateIssues < ActiveRecord::Migration
def self.up
create_table :issues do |t|
t.integer :serial_id
t.integer :project_id
t.integer :user_id
t.string :title
t.text :body
t.string :status
t.timestamps
end
add_index :issues, [:project_id, :serial_id], :unique => true
end
def self.down
drop_table :issues
end
end