diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-03-21 00:55:08 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-03-21 00:55:08 +0300 |
commit | 7c51d5efecdad1a7f52ffecdf57c86b7b90ca166 (patch) | |
tree | 770615e2c9fe547f064a0de0246f397e32ff83c8 /db | |
parent | 3058a8fa4c1dfdf50a6f274bfbf280f8d2137168 (diff) |
Fix some specs
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160320204112_index_namespaces_on_visibility_level.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20160320204112_index_namespaces_on_visibility_level.rb b/db/migrate/20160320204112_index_namespaces_on_visibility_level.rb new file mode 100644 index 00000000000..b3145443497 --- /dev/null +++ b/db/migrate/20160320204112_index_namespaces_on_visibility_level.rb @@ -0,0 +1,5 @@ +class IndexNamespacesOnVisibilityLevel < ActiveRecord::Migration + def change + add_index :namespaces, :visibility_level + end +end diff --git a/db/schema.rb b/db/schema.rb index 2aa37cc590c..9d1d7d9b823 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -601,6 +601,7 @@ ActiveRecord::Schema.define(version: 20160316204731) do add_index "namespaces", ["path"], name: "index_namespaces_on_path", unique: true, using: :btree add_index "namespaces", ["path"], name: "index_namespaces_on_path_trigram", using: :gin, opclasses: {"path"=>"gin_trgm_ops"} add_index "namespaces", ["type"], name: "index_namespaces_on_type", using: :btree + add_index "namespaces", ["visibility_level"], name: "index_namespaces_on_visibility_level", using: :btree create_table "notes", force: :cascade do |t| t.text "note" |