aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:11:07 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:16:54 +0200
commit804c99fce66998ddcfd4970ff2c63141915bafd1 (patch)
treecb489e4fad6ba586e14389a05c179b9aac0dc75d /db
parent3e6ae9e523b410e9f100c8840ee9b6cc77043537 (diff)
downloadoperum-804c99fce66998ddcfd4970ff2c63141915bafd1.tar.gz
operum-804c99fce66998ddcfd4970ff2c63141915bafd1.zip
searches: Add rich text description
This allows for adding rich content to searches so it can be displayed in shared searches, for example. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20250701132737_add_description_to_search.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20250701132737_add_description_to_search.rb b/db/migrate/20250701132737_add_description_to_search.rb
new file mode 100644
index 0000000..25a89b6
--- /dev/null
+++ b/db/migrate/20250701132737_add_description_to_search.rb
@@ -0,0 +1,5 @@
+class AddDescriptionToSearch < ActiveRecord::Migration[8.0]
+ def change
+ add_column :searches, :description, :text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 32aa6c5..90b93b2 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[8.0].define(version: 2024_11_08_085227) do
+ActiveRecord::Schema[8.0].define(version: 2025_07_01_132737) do
create_table "action_text_rich_texts", force: :cascade do |t|
t.string "name", null: false
t.text "body"
@@ -64,6 +64,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_11_08_085227) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "shared", default: false
+ t.text "description"
t.index ["body"], name: "index_searches_on_body", unique: true
t.index ["name"], name: "index_searches_on_name", unique: true
t.index ["user_id"], name: "index_searches_on_user_id"