diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-03-02 19:13:50 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-03-10 10:38:36 -0300 |
commit | 5551ccd7201ea6b45a2e2721502ba55e8f525d8f (patch) | |
tree | 65d9b9c37f1ed839d4e16953207e82a9629dd9dc /db | |
parent | f2a9ee258e0ee3a6fe0cb614e4b73c56dcd7339d (diff) | |
download | gitlab-ce-5551ccd7201ea6b45a2e2721502ba55e8f525d8f.tar.gz |
Code improvements
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160301124843_add_visibility_level_to_groups.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/db/migrate/20160301124843_add_visibility_level_to_groups.rb b/db/migrate/20160301124843_add_visibility_level_to_groups.rb index b0afe795f42..86dc07f4333 100644 --- a/db/migrate/20160301124843_add_visibility_level_to_groups.rb +++ b/db/migrate/20160301124843_add_visibility_level_to_groups.rb @@ -1,9 +1,6 @@ class AddVisibilityLevelToGroups < ActiveRecord::Migration def change #All groups will be private when created - add_column :namespaces, :visibility_level, :integer, null: false, default: 0 - - #Set all existing groups to public - Group.update_all(visibility_level: 20) + add_column :namespaces, :visibility_level, :integer, null: false, default: 20 end end diff --git a/db/schema.rb b/db/schema.rb index d0e3bb769d2..d2f311e42da 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160305220806) do +ActiveRecord::Schema.define(version: 20160301124843) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |