about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-17 11:43:07 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-17 11:43:07 -0400
commit8d039903f630db0b89f2df44a94f4e5c938bd7bf (patch)
tree80d33266fff46582bc4ea7d1fc31f7b73efca965 /db
parent4369be26b98e874ec560f92b6fd204deca8bd609 (diff)
downloadthoughts-8d039903f630db0b89f2df44a94f4e5c938bd7bf.tar.gz
thoughts-8d039903f630db0b89f2df44a94f4e5c938bd7bf.tar.bz2
thoughts-8d039903f630db0b89f2df44a94f4e5c938bd7bf.zip
Added marking comments as spam
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20231017153558_add_more_comment_columns.rb9
-rw-r--r--db/schema.rb5
2 files changed, 13 insertions, 1 deletions
diff --git a/db/migrate/20231017153558_add_more_comment_columns.rb b/db/migrate/20231017153558_add_more_comment_columns.rb new file mode 100644 index 0000000..9ce3e07 --- /dev/null +++ b/db/migrate/20231017153558_add_more_comment_columns.rb
@@ -0,0 +1,9 @@
1class AddMoreCommentColumns < ActiveRecord::Migration[7.0]
2 def change
3 change_table :comments do |t|
4 t.string :request_ip
5 t.string :user_agent
6 t.string :referrer
7 end
8 end
9end
diff --git a/db/schema.rb b/db/schema.rb index edbb24e..3a9e111 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.0].define(version: 2023_10_14_194459) do 13ActiveRecord::Schema[7.0].define(version: 2023_10_17_153558) 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
@@ -97,6 +97,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_14_194459) do
97 t.datetime "created_at", null: false 97 t.datetime "created_at", null: false
98 t.datetime "updated_at", null: false 98 t.datetime "updated_at", null: false
99 t.integer "reply_to_id" 99 t.integer "reply_to_id"
100 t.string "request_ip"
101 t.string "user_agent"
102 t.string "referrer"
100 t.index ["blog_id"], name: "index_comments_on_blog_id" 103 t.index ["blog_id"], name: "index_comments_on_blog_id"
101 t.index ["reply_to_id"], name: "index_comments_on_reply_to_id" 104 t.index ["reply_to_id"], name: "index_comments_on_reply_to_id"
102 end 105 end