Skip to content

Commit

Permalink
[api] yet another fix for my favorite migration ;(
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 4, 2013
1 parent 5210d62 commit d4cfa86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/db/migrate/20131022114302_check_deleted_repo.rb
Expand Up @@ -6,7 +6,7 @@ class Project < ActiveRecord::Base; end
def self.up
# default repository to link when original one got removed
d = Project.where(name: 'deleted').first_or_create
Repository.where(project_id: d.id, name: 'deleted').first_or_create
Repository.where(db_project_id: d.id, name: 'deleted').first_or_create
end

def self.down
Expand Down

0 comments on commit d4cfa86

Please sign in to comment.