models: remove ignored_columns declarations.

These columns have been removed from the underlying database.
This commit is contained in:
evazion
2022-09-20 21:23:34 -05:00
parent b66f84c0c7
commit a229a6f5c4
11 changed files with 0 additions and 22 deletions

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class ArtistCommentaryVersion < ApplicationRecord
self.ignored_columns = [:updater_ip_addr]
belongs_to :post
belongs_to_updater

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class ArtistURL < ApplicationRecord
self.ignored_columns = [:normalized_url]
normalize :url, :normalize_url
validates :url, presence: true, uniqueness: { scope: :artist_id }

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class ArtistVersion < ApplicationRecord
self.ignored_columns = [:updater_ip_addr]
array_attribute :urls
array_attribute :other_names

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class Comment < ApplicationRecord
self.ignored_columns = [:creator_ip_addr, :updater_ip_addr]
attr_accessor :creator_ip_addr
belongs_to :post

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class Dmail < ApplicationRecord
self.ignored_columns = [:creator_ip_addr]
attr_accessor :creator_ip_addr
validate :validate_sender_is_not_limited, on: :create

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class NoteVersion < ApplicationRecord
self.ignored_columns = [:updater_ip_addr]
belongs_to :post
belongs_to :note
belongs_to_updater :counter_cache => "note_update_count"

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class PoolVersion < ApplicationRecord
self.ignored_columns = [:updater_ip_addr]
belongs_to :updater, :class_name => "User"
belongs_to :pool

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class Post < ApplicationRecord
self.ignored_columns = [:uploader_ip_addr]
class RevertError < StandardError; end
class DeletionError < StandardError; end

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class PostVersion < ApplicationRecord
self.ignored_columns = [:updater_ip_addr]
class RevertError < StandardError; end
extend Memoist

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class Upload < ApplicationRecord
self.ignored_columns = [:uploader_ip_addr]
extend Memoist
class Error < StandardError; end

View File

@@ -1,8 +1,6 @@
# frozen_string_literal: true
class WikiPageVersion < ApplicationRecord
self.ignored_columns = [:updater_ip_addr]
array_attribute :other_names
belongs_to :wiki_page
belongs_to_updater