mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Remove outdated ignoring of columns
Those columns have been removed from the database and don't need to be ignored any more.
This commit is contained in:
@@ -16,19 +16,6 @@ class Enterprise < ApplicationRecord
|
||||
large: { resize_to_fill: [1200, 260] },
|
||||
}.freeze
|
||||
|
||||
self.ignored_columns = %i(terms_and_conditions_file_name
|
||||
terms_and_conditions_content_type
|
||||
terms_and_conditions_file_size
|
||||
terms_and_conditions_updated_at
|
||||
logo_file_name
|
||||
logo_content_type
|
||||
logo_file_size
|
||||
logo_updated_at
|
||||
promo_image_file_name
|
||||
promo_image_content_type
|
||||
promo_image_file_size
|
||||
promo_image_updated_at)
|
||||
|
||||
searchable_attributes :sells, :is_primary_producer
|
||||
searchable_associations :properties
|
||||
searchable_scopes :is_primary_producer, :is_distributor, :is_hub, :activated, :visible,
|
||||
|
||||
@@ -5,15 +5,6 @@ require 'open_food_network/locking'
|
||||
class EnterpriseGroup < ApplicationRecord
|
||||
include PermalinkGenerator
|
||||
|
||||
self.ignored_columns = %i(logo_file_name
|
||||
logo_content_type
|
||||
logo_file_size
|
||||
logo_updated_at
|
||||
promo_image_file_name
|
||||
promo_image_content_type
|
||||
promo_image_file_size
|
||||
promo_image_updated_at)
|
||||
|
||||
acts_as_list
|
||||
|
||||
has_and_belongs_to_many :enterprises, join_table: 'enterprise_groups_enterprises'
|
||||
|
||||
@@ -9,13 +9,6 @@ module Spree
|
||||
large: { resize_to_limit: [600, 600] },
|
||||
}.freeze
|
||||
|
||||
self.ignored_columns = %i(attachment_file_name
|
||||
attachment_content_type
|
||||
attachment_file_size
|
||||
attachment_updated_at
|
||||
attachment_width
|
||||
attachment_height)
|
||||
|
||||
has_one_attached :attachment
|
||||
|
||||
validates :attachment, attached: true, content_type: %r{\Aimage/(png|jpeg|gif|jpg|svg\+xml|webp)\Z}
|
||||
|
||||
@@ -5,11 +5,6 @@ class TermsOfServiceFile < ApplicationRecord
|
||||
|
||||
validates :attachment, attached: true
|
||||
|
||||
self.ignored_columns = %i(attachment_file_name
|
||||
attachment_content_type
|
||||
attachment_file_size
|
||||
attachment_updated_at)
|
||||
|
||||
# The most recently uploaded file is the current one.
|
||||
def self.current
|
||||
order(:id).last
|
||||
|
||||
Reference in New Issue
Block a user