2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-03-11 16:08:41 +00:00
|
|
|
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
|