diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-09 14:14:45 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-05-09 21:09:41 +0300 |
commit | f09dcbd9bd2590bb66ee49b65637525a3c71a307 (patch) | |
tree | 8cdcbb6667697c559b59c4548c0857da364b8128 /db/post_migrate | |
parent | f2a4420d66216e3a9172f4ab45c6b4fa96578117 (diff) |
Make retried to be nullable
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20170503004427_upate_retried_for_ci_build.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/post_migrate/20170503004427_upate_retried_for_ci_build.rb b/db/post_migrate/20170503004427_upate_retried_for_ci_build.rb index e12180930a7..80215d662e4 100644 --- a/db/post_migrate/20170503004427_upate_retried_for_ci_build.rb +++ b/db/post_migrate/20170503004427_upate_retried_for_ci_build.rb @@ -20,7 +20,7 @@ class UpateRetriedForCiBuild < ActiveRecord::Migration is_retried = Arel.sql("((#{latest_id}) != ci_builds.id)") update_column_in_batches(:ci_builds, :retried, is_retried) do |table, query| - query.where(table[:retried].eq(false)) + query.where(table[:retried].eq(nil)) end end |