Skip to content

Instantly share code, notes, and snippets.

@johnmaxwell
Last active June 7, 2019 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmaxwell/132c618846fd32ca4c52b080d9f3e5f0 to your computer and use it in GitHub Desktop.
Save johnmaxwell/132c618846fd32ca4c52b080d9f3e5f0 to your computer and use it in GitHub Desktop.
rentals-only
ids = ["24884", "24713", "24685", "24683", "24680", "24670", "24668", "24665", "24664", "24659", "24658", "24655", "24648", "24646", "24644", "24642", "24637", "24636", "24633", "24625", "24624", "24612", "24610", "24606", "24602", "24600", "24598", "24593", "24582", "24577", "24575", "24541", "24538", "24533", "24528", "24518", "24517", "24511", "24466", "24451", "24450", "24441", "24405", "24324", "24320", "24318", "24315", "24314", "24311", "24306", "24305", "24298", "24272", "24257", "24110", "24109", "24097", "24095", "24092", "24074", "24048", "24042", "23957", "23930", "23925", "23818", "23813", "23756", "23731", "23683", "23673", "23622", "23606", "23605", "23603", "23601", "23538", "23537", "23254", "23252", "23251", "23152", "23138", "23118", "23052", "23051", "23035", "22942", "22922", "22908", "22906", "22852", "22848", "22843", "22832", "22830", "22829", "22797", "22758", "22471", "22442", "22416", "22387", "22379", "22366", "22251", "22242", "22191", "22045", "21930", "21929", "21921", "21797", "21747", "21739", "21730", "21729", "21725", "21724", "21723", "21722", "21719", "21708", "21706", "21701", "21700", "21677", "21642", "21561", "21535", "21341", "21311", "21309", "21308", "21305", "21303", "21294", "21291", "21235", "21233", "21194", "21189", "21135", "21133", "20912", "20908", "20906", "20905", "20901", "20891", "20890", "20885", "20884", "20881", "20763", "20612", "20609", "20607", "20606", "20603", "20602", "20590", "20582", "20537", "20510", "20505", "20476", "20454", "20453", "20452", "20438", "20434", "20429", "20185", "20184", "20183", "20182", "20156", "20155", "20098", "20096", "20092", "20091", "19136", "18895", "18893", "18890", "18837", "18821", "18811", "18806", "18805", "18804", "18802", "18794", "18596", "17960", "17662", "17614", "13351", "13084", "12499", "12420", "11266", "11087", "11019", "10630", "10282", "10107", "9531", "9454", "8785", "6658", "6376", "6370", "6226", "2494", "1989", "611"]
Property.where(status: 'inactive', id: ids).update_all(status: 'rentals_only')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment