Skip to content
Snippets Groups Projects

Fix db after updating rails

Closed gitlab-qa-bot requested to merge github/fork/Undev/fix-db-after-updating-rails into master

Created by: Andrew8xx8

All scopes and factories must be in lambdas and blocks

For more information check out this http://blog.crowdint.com/2012/09/26/using-lambda-in-activerecord-scopes-that-involve-other-classes.html

Same problem was in the Factory Girl factories

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Created by: dzaporozhets

    Fix db after updating rails

    it was broken?

    By Administrator on 2013-02-12T08:54:35 (imported from GitLab project)

    By Administrator on 2013-02-12T08:54:35 (imported from GitLab)

  • Created by: zzet

    @randx yes. See travis build log.

    By Administrator on 2013-02-12T08:57:28 (imported from GitLab project)

    By Administrator on 2013-02-12T08:57:28 (imported from GitLab)

  • Created by: dzaporozhets

    @zzet postgres :)

    By Administrator on 2013-02-12T08:58:49 (imported from GitLab project)

    By Administrator on 2013-02-12T08:58:49 (imported from GitLab)

  • Created by: Andrew8xx8

    And MySQL too. Problem was on creating DB step

    By Administrator on 2013-02-12T09:06:13 (imported from GitLab project)

    By Administrator on 2013-02-12T09:06:13 (imported from GitLab)

  • Created by: zzet

    @randx not only :( Mysql is failed also

    By Administrator on 2013-02-12T09:06:45 (imported from GitLab project)

    By Administrator on 2013-02-12T09:06:45 (imported from GitLab)

  • Created by: dzaporozhets

    My local tests passes at mysql. Also production server works nice too

    By Administrator on 2013-02-12T09:11:12 (imported from GitLab project)

    By Administrator on 2013-02-12T09:11:12 (imported from GitLab)

  • Created by: dzaporozhets

    Anyway this one will be useful for rails 4 so I will merge it

    By Administrator on 2013-02-12T09:12:13 (imported from GitLab project)

    By Administrator on 2013-02-12T09:12:13 (imported from GitLab)

Please register or sign in to reply
Loading