Merge pull request #2295 from wairbut-m2c/aperez-mappable-objects

Improvements for Mappable objects
This commit is contained in:
BertoCQ
2018-02-02 19:26:47 +01:00
committed by GitHub
7 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
namespace :map_locations do
desc 'Destroy all empty MapLocation instances found in the database'
task destroy: :environment do
MapLocation.where(longitude: nil, latitude: nil, zoom: nil).each do |map_location|
map_location.destroy
end
end
end