diff options
author | Fabio Papa <fabtheman@gmail.com> | 2019-06-28 23:31:47 +0300 |
---|---|---|
committer | Fabio Papa <fabtheman@gmail.com> | 2019-07-19 21:55:47 +0300 |
commit | 13d9c5dda20095e8f5aaaa173ec2fcc4213ba7bb (patch) | |
tree | 631dfbcd99a8b85322043b740fd9b5dde2b5b55c /db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb | |
parent | ec802d6434230cdbdb487ef6febe6205886035f9 (diff) |
Style rules; Revert some examples
Diffstat (limited to 'db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb')
-rw-r--r-- | db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb b/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb index b0ea74d4765..eed0ba25f27 100644 --- a/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb +++ b/db/migrate/20190626175626_add_group_creation_level_to_namespaces.rb @@ -5,10 +5,13 @@ class AddGroupCreationLevelToNamespaces < ActiveRecord::Migration[5.1] DOWNTIME = false disable_ddl_transaction! - + def up unless column_exists?(:namespaces, :subgroup_creation_level) - add_column_with_default(:namespaces, :subgroup_creation_level, :integer, default: 0) + add_column_with_default(:namespaces, + :subgroup_creation_level, + :integer, + default: 0) end end |