2012-02-20 23:13:05 +00:00
|
|
|
class RemoveRepositoriesOwner < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
remove_column :repositories, :owner_id
|
|
|
|
remove_column :repositories, :owner_type
|
2014-01-21 04:51:49 +00:00
|
|
|
Relation.delete_all(target_type: 'Repository')
|
2012-02-20 23:13:05 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
add_column :repositories, :owner_id, :integer
|
|
|
|
add_column :repositories, :owner_type, :string
|
|
|
|
end
|
|
|
|
end
|