diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-12-28 13:32:18 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2016-01-04 16:00:29 +0200 |
commit | 8b1844912561a7e6dd0cc361ea1514f2a340e275 (patch) | |
tree | 9a6c705fb9ac1c1e6c28f5ed712025c0b020fd1c /db | |
parent | 57074d606b20516921ff2297e2f94262b58e3d3e (diff) | |
download | gitlab-ce-8b1844912561a7e6dd0cc361ea1514f2a340e275.tar.gz |
remove public field from namespace and refactoringnamespace-clean_up
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151228111122_remove_public_from_namespace.rb | 6 | ||||
-rw-r--r-- | db/schema.rb | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/db/migrate/20151228111122_remove_public_from_namespace.rb b/db/migrate/20151228111122_remove_public_from_namespace.rb new file mode 100644 index 00000000000..f4c848bbf47 --- /dev/null +++ b/db/migrate/20151228111122_remove_public_from_namespace.rb @@ -0,0 +1,6 @@ +# Migration type: online +class RemovePublicFromNamespace < ActiveRecord::Migration + def change + remove_column :namespaces, :public, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index df7f72d5ad4..7a6d34b8153 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -547,22 +547,20 @@ ActiveRecord::Schema.define(version: 20151229112614) do add_index "milestones", ["project_id"], name: "index_milestones_on_project_id", using: :btree create_table "namespaces", force: :cascade 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 add_index "namespaces", ["name"], name: "index_namespaces_on_name", unique: true, using: :btree add_index "namespaces", ["owner_id"], name: "index_namespaces_on_owner_id", using: :btree add_index "namespaces", ["path"], name: "index_namespaces_on_path", unique: true, using: :btree - add_index "namespaces", ["public"], name: "index_namespaces_on_public", using: :btree add_index "namespaces", ["type"], name: "index_namespaces_on_type", using: :btree create_table "notes", force: :cascade do |t| |