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

16 lines
302 B
Ruby
Raw Normal View History

2012-01-30 20:39:34 +00:00
# -*- encoding : utf-8 -*-
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