diff --git a/app/models/hps_city.rb b/app/models/hps_city.rb index 03f383f..7d094f9 100644 --- a/app/models/hps_city.rb +++ b/app/models/hps_city.rb @@ -7,4 +7,5 @@ class HpsCity has_many :hps_counties, :dependent => :destroy has_many :hps_schools + has_many :hps_files end \ No newline at end of file diff --git a/app/models/hps_file.rb b/app/models/hps_file.rb index d7fa622..c5d7794 100644 --- a/app/models/hps_file.rb +++ b/app/models/hps_file.rb @@ -7,8 +7,9 @@ class HpsFile field :title field :download_count, type: Integer, :default => 0 field :year, type: Integer + field :old_id belongs_to :hps_member - + belongs_to :hps_city end \ No newline at end of file