about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20241207200746_add_like_fields_to_vote.rb8
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20241207200746_add_like_fields_to_vote.rb b/db/migrate/20241207200746_add_like_fields_to_vote.rb new file mode 100644 index 0000000..eae2816 --- /dev/null +++ b/db/migrate/20241207200746_add_like_fields_to_vote.rb
@@ -0,0 +1,8 @@
1class AddLikeFieldsToVote < ActiveRecord::Migration[7.1]
2 def change
3 change_table :votes do |t|
4 t.string :liker_url
5 t.string :liker_name
6 end
7 end
8end
diff --git a/db/schema.rb b/db/schema.rb index 9cfdf57..b01ed43 100644 --- a/db/schema.rb +++ b/db/schema.rb
@@ -10,7 +10,7 @@
10# 10#
11# It's strongly recommended that you check this file into your version control system. 11# It's strongly recommended that you check this file into your version control system.
12 12
13ActiveRecord::Schema[7.1].define(version: 2024_03_20_145033) do 13ActiveRecord::Schema[7.1].define(version: 2024_12_07_200746) do
14 create_table "active_storage_attachments", force: :cascade do |t| 14 create_table "active_storage_attachments", force: :cascade do |t|
15 t.string "name", null: false 15 t.string "name", null: false
16 t.string "record_type", null: false 16 t.string "record_type", null: false
@@ -421,6 +421,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_03_20_145033) do
421 t.string "ip" 421 t.string "ip"
422 t.datetime "created_at", null: false 422 t.datetime "created_at", null: false
423 t.datetime "updated_at", null: false 423 t.datetime "updated_at", null: false
424 t.string "liker_url"
425 t.string "liker_name"
424 t.index ["votable_type", "votable_id"], name: "index_votes_on_votable" 426 t.index ["votable_type", "votable_id"], name: "index_votes_on_votable"
425 end 427 end
426 428