rosa-build/db/migrate/20110312133121_create_conta...

16 lines
318 B
Ruby
Raw Permalink Normal View History

2011-03-15 21:52:27 +00:00
class CreateContainers < ActiveRecord::Migration
def self.up
create_table :containers do |t|
2014-01-21 04:51:49 +00:00
t.string :name, null: false
t.integer :project_id, null: false
2014-03-14 17:41:49 +00:00
t.integer :owner_id, null: false, references: nil
2011-03-15 21:52:27 +00:00
t.timestamps
end
end
def self.down
drop_table :containers
end
end