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/migrate | |
parent | f2a4420d66216e3a9172f4ab45c6b4fa96578117 (diff) |
Make retried to be nullable
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170503004426_add_retried_to_ci_build.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/db/migrate/20170503004426_add_retried_to_ci_build.rb b/db/migrate/20170503004426_add_retried_to_ci_build.rb index 9f509f97f14..2851e3de473 100644 --- a/db/migrate/20170503004426_add_retried_to_ci_build.rb +++ b/db/migrate/20170503004426_add_retried_to_ci_build.rb @@ -3,13 +3,7 @@ class AddRetriedToCiBuild < ActiveRecord::Migration DOWNTIME = false - disable_ddl_transaction! - - def up - add_column_with_default(:ci_builds, :retried, :boolean, default: false) - end - - def down - remove_column(:ci_builds, :retried) + def change + add_column(:ci_builds, :retried, :boolean) end end |