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
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ArtistCommentaryVersion < ApplicationRecord
|
class ArtistCommentaryVersion < ApplicationRecord
|
||||||
self.ignored_columns = [:updater_ip_addr]
|
|
||||||
|
|
||||||
belongs_to :post
|
belongs_to :post
|
||||||
belongs_to_updater
|
belongs_to_updater
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ArtistURL < ApplicationRecord
|
class ArtistURL < ApplicationRecord
|
||||||
self.ignored_columns = [:normalized_url]
|
|
||||||
|
|
||||||
normalize :url, :normalize_url
|
normalize :url, :normalize_url
|
||||||
|
|
||||||
validates :url, presence: true, uniqueness: { scope: :artist_id }
|
validates :url, presence: true, uniqueness: { scope: :artist_id }
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ArtistVersion < ApplicationRecord
|
class ArtistVersion < ApplicationRecord
|
||||||
self.ignored_columns = [:updater_ip_addr]
|
|
||||||
|
|
||||||
array_attribute :urls
|
array_attribute :urls
|
||||||
array_attribute :other_names
|
array_attribute :other_names
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Comment < ApplicationRecord
|
class Comment < ApplicationRecord
|
||||||
self.ignored_columns = [:creator_ip_addr, :updater_ip_addr]
|
|
||||||
|
|
||||||
attr_accessor :creator_ip_addr
|
attr_accessor :creator_ip_addr
|
||||||
|
|
||||||
belongs_to :post
|
belongs_to :post
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Dmail < ApplicationRecord
|
class Dmail < ApplicationRecord
|
||||||
self.ignored_columns = [:creator_ip_addr]
|
|
||||||
|
|
||||||
attr_accessor :creator_ip_addr
|
attr_accessor :creator_ip_addr
|
||||||
|
|
||||||
validate :validate_sender_is_not_limited, on: :create
|
validate :validate_sender_is_not_limited, on: :create
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class NoteVersion < ApplicationRecord
|
class NoteVersion < ApplicationRecord
|
||||||
self.ignored_columns = [:updater_ip_addr]
|
|
||||||
|
|
||||||
belongs_to :post
|
belongs_to :post
|
||||||
belongs_to :note
|
belongs_to :note
|
||||||
belongs_to_updater :counter_cache => "note_update_count"
|
belongs_to_updater :counter_cache => "note_update_count"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class PoolVersion < ApplicationRecord
|
class PoolVersion < ApplicationRecord
|
||||||
self.ignored_columns = [:updater_ip_addr]
|
|
||||||
|
|
||||||
belongs_to :updater, :class_name => "User"
|
belongs_to :updater, :class_name => "User"
|
||||||
belongs_to :pool
|
belongs_to :pool
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Post < ApplicationRecord
|
class Post < ApplicationRecord
|
||||||
self.ignored_columns = [:uploader_ip_addr]
|
|
||||||
|
|
||||||
class RevertError < StandardError; end
|
class RevertError < StandardError; end
|
||||||
class DeletionError < StandardError; end
|
class DeletionError < StandardError; end
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class PostVersion < ApplicationRecord
|
class PostVersion < ApplicationRecord
|
||||||
self.ignored_columns = [:updater_ip_addr]
|
|
||||||
|
|
||||||
class RevertError < StandardError; end
|
class RevertError < StandardError; end
|
||||||
extend Memoist
|
extend Memoist
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Upload < ApplicationRecord
|
class Upload < ApplicationRecord
|
||||||
self.ignored_columns = [:uploader_ip_addr]
|
|
||||||
|
|
||||||
extend Memoist
|
extend Memoist
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class WikiPageVersion < ApplicationRecord
|
class WikiPageVersion < ApplicationRecord
|
||||||
self.ignored_columns = [:updater_ip_addr]
|
|
||||||
|
|
||||||
array_attribute :other_names
|
array_attribute :other_names
|
||||||
belongs_to :wiki_page
|
belongs_to :wiki_page
|
||||||
belongs_to_updater
|
belongs_to_updater
|
||||||
|
|||||||
Reference in New Issue
Block a user