socialforge/db/migrate/015_create_repositories.rb

13 lines
320 B
Ruby
Raw Normal View History

2013-08-01 10:33:49 +08:00
class CreateRepositories < ActiveRecord::Migration
def self.up
create_table :repositories, :force => true do |t|
t.column "project_id", :integer, :default => 0, :null => false
t.column "url", :string, :default => "", :null => false
end
end
def self.down
drop_table :repositories
end
end