rosa-build/db/migrate/20110311154136_add_reposito...

10 lines
213 B
Ruby

class AddRepositoryIdToProjects < ActiveRecord::Migration
def self.up
add_column :projects, :repository_id, :integer, null: false
end
def self.down
remove_column :projects, :repository_id
end
end