rosa-build/db/migrate/20110411082826_create_produ...

17 lines
426 B
Ruby
Raw Permalink Normal View History

class CreateProducts < ActiveRecord::Migration
def self.up
create_table :products do |t|
2014-01-21 04:51:49 +00:00
t.string :name, null: false
t.integer :platform_id, null: false
t.integer :build_status, default: 2, null: false ### NOTE default: 2 comes from Product::NEVER_BUILT status which we unable to use here
t.string :build_path
t.timestamps
end
end
def self.down
drop_table :products
end
end