From 8d039903f630db0b89f2df44a94f4e5c938bd7bf Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 17 Oct 2023 11:43:07 -0400 Subject: Added marking comments as spam --- db/migrate/20231017153558_add_more_comment_columns.rb | 9 +++++++++ db/schema.rb | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20231017153558_add_more_comment_columns.rb (limited to 'db') 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 @@ +class AddMoreCommentColumns < ActiveRecord::Migration[7.0] + def change + change_table :comments do |t| + t.string :request_ip + t.string :user_agent + t.string :referrer + end + end +end 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 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_10_14_194459) do +ActiveRecord::Schema[7.0].define(version: 2023_10_17_153558) do create_table "active_storage_attachments", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -97,6 +97,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_10_14_194459) do t.datetime "created_at", null: false t.datetime "updated_at", null: false t.integer "reply_to_id" + t.string "request_ip" + t.string "user_agent" + t.string "referrer" t.index ["blog_id"], name: "index_comments_on_blog_id" t.index ["reply_to_id"], name: "index_comments_on_reply_to_id" end -- cgit 1.4.1