diff options
author | Valery Sizov <valery@gitlab.com> | 2015-11-05 12:38:00 +0200 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-11-05 13:18:51 +0200 |
commit | 6051c28fc03b4d9928ee2f2855f210845f9c0579 (patch) | |
tree | 43447b26e57d81765f983ef38e34eb5b3ba10997 /db | |
parent | 363900a3e7902cbda8f62b55eb2c30881b3dae3f (diff) | |
download | gitlab-ce-6051c28fc03b4d9928ee2f2855f210845f9c0579.tar.gz |
Allow groups to appear in the search results if the group owner allows it
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151103001141_add_public_to_group.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/db/migrate/20151103001141_add_public_to_group.rb b/db/migrate/20151103001141_add_public_to_group.rb new file mode 100644 index 00000000000..635346300c2 --- /dev/null +++ b/db/migrate/20151103001141_add_public_to_group.rb @@ -0,0 +1,5 @@ +class AddPublicToGroup < ActiveRecord::Migration + def change + add_column :namespaces, :public, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 73fc83c3d6b..17d445a8baa 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: 20151026182941) do +ActiveRecord::Schema.define(version: 20151103001141) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -501,14 +501,15 @@ ActiveRecord::Schema.define(version: 20151026182941) do add_index "milestones", ["project_id"], name: "index_milestones_on_project_id", using: :btree create_table "namespaces", force: true do |t| - t.string "name", null: false - t.string "path", null: false + t.string "name", null: false + t.string "path", null: false t.integer "owner_id" t.datetime "created_at" t.datetime "updated_at" t.string "type" - t.string "description", default: "", null: false + t.string "description", default: "", null: false t.string "avatar" + t.boolean "public", default: false end add_index "namespaces", ["created_at", "id"], name: "index_namespaces_on_created_at_and_id", using: :btree |