aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-14 22:17:12 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-14 22:20:09 +0100
commit8818aa680c2ddaf1204e297fe27f088499eea74f (patch)
tree1888efcf1ffc138c848584058299454510544188 /db
parentc232356d490cefb44dd96b400961fe26a85ce183 (diff)
downloadoperum-8818aa680c2ddaf1204e297fe27f088499eea74f.tar.gz
operum-8818aa680c2ddaf1204e297fe27f088499eea74f.zip
Dropped redundant 'location' column
Looks like I messed up later on and kept two columns which were basically referring to the same thing. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20240314211609_drop_location_column.rb5
-rw-r--r--db/schema.rb3
2 files changed, 6 insertions, 2 deletions
diff --git a/db/migrate/20240314211609_drop_location_column.rb b/db/migrate/20240314211609_drop_location_column.rb
new file mode 100644
index 0000000..1afa57f
--- /dev/null
+++ b/db/migrate/20240314211609_drop_location_column.rb
@@ -0,0 +1,5 @@
+class DropLocationColumn < ActiveRecord::Migration[7.1]
+ def change
+ remove_column :things, :location
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 967b074..8726291 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_13_133513) do
+ActiveRecord::Schema[7.1].define(version: 2024_03_14_211609) do
create_table "action_text_rich_texts", force: :cascade do |t|
t.string "name", null: false
t.text "body"
@@ -94,7 +94,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_03_13_133513) do
t.integer "year"
t.string "url"
t.date "access"
- t.string "location"
t.string "insideof"
t.string "pages"
t.integer "user_id", null: false