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

17 lines
337 B
Ruby

# -*- encoding : utf-8 -*-
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