Skip to content

Commit

Permalink
Add useful comments for importer
Browse files Browse the repository at this point in the history
  • Loading branch information
Levia committed Sep 18, 2020
1 parent ac57b79 commit 5b2190f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def self.create_protected_area(attributes)
protected_area_id = nil
begin
ActiveRecord::Base.transaction(requires_new: true) do
# Below lines were needed on staging as the ProtectedArea model
# wasn't getting the new columns information after switching from the
# postgres db to the newly created db
#ProtectedArea.connection.schema_cache.clear!
#ProtectedArea.reset_column_information
protected_area_id = ProtectedArea.create!(standardised_attributes).id
end
rescue
Expand Down

0 comments on commit 5b2190f

Please sign in to comment.