Merge pull request #2295 from wairbut-m2c/aperez-mappable-objects
Improvements for Mappable objects
This commit is contained in:
8
lib/tasks/map_locations.rake
Normal file
8
lib/tasks/map_locations.rake
Normal 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
|
||||
Reference in New Issue
Block a user