mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
- Deleted Elasticsearch gems from Gemfile and Gemfile.lock. - Updated README and TECH documentation to reflect the removal of Elasticsearch. - Removed Elasticsearch-related code from models, controllers, services, and factories. - Adjusted tests to eliminate dependencies on Elasticsearch. - Cleaned up Docker configuration and environment variables related to Elasticsearch. - Added a TODO file for future gem reviews and potential removals.
13 lines
378 B
Ruby
13 lines
378 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AlternateName < ApplicationRecord
|
|
# Only crop search reads it (see SearchCrops).
|
|
self.ignored_columns += %w(normalised_name)
|
|
|
|
belongs_to :crop
|
|
belongs_to :creator, class_name: 'Member', inverse_of: :created_alternate_names
|
|
validates :name, presence: true
|
|
validates :crop, presence: true
|
|
validates :language, presence: true
|
|
end
|