Implement state search with new model
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
class ParksByState < ApplicationRecord
|
||||
has_many :parks, foreign_key: :park_code, primary_key: :code,
|
||||
inverse_of: :states
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user