Created
April 25, 2012 15:09
-
-
Save jeffdeville/2490458 to your computer and use it in GitHub Desktop.
Suspend properties with no geocoordinates, and tag them w/ the mixin no_location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mixin = InventoryMixin.find(776) | |
| Inventory.not_geocoded.where(:property_management_company_id => 154).each do |inv| | |
| inv.mixins << mixin | |
| inv.status = "suspended" | |
| inv.save! | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment