rosa-build/db/migrate/20111014150436_remove_repos...

10 lines
217 B
Ruby
Raw Normal View History

2011-10-17 15:18:37 +01:00
class RemoveRepositoryIdFromProject < ActiveRecord::Migration
def self.up
remove_column :projects, :repository_id
end
def self.down
2014-01-21 04:51:49 +00:00
add_column :projects, :repository_id, :integer, null: false
2011-10-17 15:18:37 +01:00
end
end