Skip to content

Commit 51713bd

Browse files
tataihonoclaude
andcommitted
refactor: Drop remote_id from authors and series tables
Leftover from the removed WordPress import service. Updated Author.ransackable_attributes accordingly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 62c709b commit 51713bd

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

app/models/author.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ def self.ransackable_associations(_auth_object = nil)
1515
end
1616

1717
def self.ransackable_attributes(_auth_object = nil)
18-
%w[created_at id name remote_id slug updated_at]
18+
%w[created_at id name slug updated_at]
1919
end
2020
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class RemoveRemoteIdFromAuthorsAndSeries < ActiveRecord::Migration[7.2]
2+
def change
3+
remove_column :authors, :remote_id, :string
4+
remove_column :series, :remote_id, :string
5+
end
6+
end

db/schema.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.2].define(version: 2026_03_28_103010) do
13+
ActiveRecord::Schema[7.2].define(version: 2026_03_28_103303) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "pg_stat_statements"
1616
enable_extension "pgcrypto"
@@ -64,7 +64,6 @@
6464
t.string "slug"
6565
t.datetime "created_at", null: false
6666
t.datetime "updated_at", null: false
67-
t.string "remote_id"
6867
end
6968

7069
create_table "categories", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t|
@@ -116,7 +115,6 @@
116115
t.string "slug"
117116
t.datetime "created_at", null: false
118117
t.datetime "updated_at", null: false
119-
t.string "remote_id"
120118
end
121119

122120
create_table "sermon_authors", id: :uuid, default: -> { "public.gen_random_uuid()" }, force: :cascade do |t|

0 commit comments

Comments
 (0)