models: remove ignored_columns declarations.
These columns have been removed from the underlying database.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ArtistCommentaryVersion < ApplicationRecord
|
||||
self.ignored_columns = [:updater_ip_addr]
|
||||
|
||||
belongs_to :post
|
||||
belongs_to_updater
|
||||
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ArtistVersion < ApplicationRecord
|
||||
self.ignored_columns = [:updater_ip_addr]
|
||||
|
||||
array_attribute :urls
|
||||
array_attribute :other_names
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PostVersion < ApplicationRecord
|
||||
self.ignored_columns = [:updater_ip_addr]
|
||||
|
||||
class RevertError < StandardError; end
|
||||
extend Memoist
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Upload < ApplicationRecord
|
||||
self.ignored_columns = [:uploader_ip_addr]
|
||||
|
||||
extend Memoist
|
||||
class Error < StandardError; end
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user