2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-03-15 21:52:27 +00:00
|
|
|
class CreateContainers < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
create_table :containers do |t|
|
|
|
|
t.string :name, :null => false
|
|
|
|
t.integer :project_id, :null => false
|
|
|
|
t.integer :owner_id, :null => false
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
drop_table :containers
|
|
|
|
end
|
|
|
|
end
|