From 4ca382009ba02d19e2407972292ebd6f6770f9d7 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 25 May 2017 18:02:17 +0800 Subject: [PATCH] small fixes for hps tasks --- app/models/hps_city.rb | 1 + app/models/hps_file.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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