Skip to content

Instantly share code, notes, and snippets.

@jcreed
Created February 8, 2016 20:12
Show Gist options
  • Save jcreed/7b0bf73044f27016b345 to your computer and use it in GitHub Desktop.
Save jcreed/7b0bf73044f27016b345 to your computer and use it in GitHub Desktop.
diff --git a/app/models/honors_and_awards.rb b/app/models/honors_and_awards.rb
index 64c2d03..9b8f88c 100644
--- a/app/models/honors_and_awards.rb
+++ b/app/models/honors_and_awards.rb
@@ -2,6 +2,6 @@ class HonorsAndAwards < ApplicationModel
belongs_to :applicant
belongs_to :achievement_type, class_name: 'Lookups::AchievementType'
- belongs_to :publication_level, class_name: 'Lookups::PublicationLevel'
+ belongs_to :publication_level, class_name: 'Lookups::PublicationLevel', foreign_key: :level
end
diff --git a/db/migrate/20160127223918_add_publication_level_id_to_honors_and_awards.rb b/db/migrate/20160127223918_add_publication_level_id_to_honors_and_awards.rb
deleted file mode 100644
index b04f27f..0000000
--- a/db/migrate/20160127223918_add_publication_level_id_to_honors_and_awards.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddPublicationLevelIdToHonorsAndAwards < ActiveRecord::Migration
- def change
- add_column :honors_and_awards, :publication_level_id, :integer
- end
-end
diff --git a/db/schema.rb b/db/schema.rb
index 9cdd2f6..b737bea 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -3203,7 +3203,6 @@ ActiveRecord::Schema.define(:version => 20160204200915) do
t.string "contact_phone"
t.string "level"
t.boolean "peer_reviewed"
- t.integer "publication_level_id"
end
add_index "honors_and_awards", ["applicant_id"], :name => "index_honors_and_awards_on_applicant_id"
diff --git a/lib/etl/deleters/honors_and_awards/publication.rb b/lib/etl/deleters/honors_and_awards/publication.rb
index 9431a3b..936ed64 100644
--- a/lib/etl/deleters/honors_and_awards/publication.rb
+++ b/lib/etl/deleters/honors_and_awards/publication.rb
@@ -10,7 +10,6 @@ class ETL::Deleters::HonorsAndAwards::Publication < ETL::Deleter
publication_contact_title
publication_date
publication_description
- publication_level
publication_name
publication_peer_reviewed
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment