aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-18 22:20:23 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-18 22:57:57 +0100
commit6c5f73b241d3b31123fbbc61cc4acf76adae8d5e (patch)
tree213291754e5a591c0c78f1eef06bdd7f66ff2c79 /db
parentcb9113ceff41ed374e4ecce2583b4f9e3ff506dc (diff)
downloadoperum-6c5f73b241d3b31123fbbc61cc4acf76adae8d5e.tar.gz
operum-6c5f73b241d3b31123fbbc61cc4acf76adae8d5e.zip
thing: removed unique index on title
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20240318211829_remove_uniqueness_index_on_title_things.rb5
-rw-r--r--db/schema.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/db/migrate/20240318211829_remove_uniqueness_index_on_title_things.rb b/db/migrate/20240318211829_remove_uniqueness_index_on_title_things.rb
new file mode 100644
index 0000000..96b5be6
--- /dev/null
+++ b/db/migrate/20240318211829_remove_uniqueness_index_on_title_things.rb
@@ -0,0 +1,5 @@
+class RemoveUniquenessIndexOnTitleThings < ActiveRecord::Migration[7.1]
+ def change
+ remove_index :things, :title
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 8726291..50fae4d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[7.1].define(version: 2024_03_14_211609) do
+ActiveRecord::Schema[7.1].define(version: 2024_03_18_211829) do
create_table "action_text_rich_texts", force: :cascade do |t|
t.string "name", null: false
t.text "body"
@@ -108,7 +108,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_03_14_211609) do
t.boolean "editors", default: false
t.string "where_is_it"
t.index ["target"], name: "index_things_on_target", unique: true
- t.index ["title"], name: "index_things_on_title", unique: true
t.index ["user_id"], name: "index_things_on_user_id"
end