summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160301124843_add_visibility_level_to_groups.rb5
-rw-r--r--db/schema.rb2
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"