rosa-build/db/migrate/20110311154011_create_repos...

15 lines
275 B
Ruby

class CreateRepositories < ActiveRecord::Migration
def self.up
create_table :repositories do |t|
t.string :name, :null => false
t.integer :platform_id, :null => false
t.timestamps
end
end
def self.down
drop_table :repositories
end
end