Sha256: 429cad5e493474d87815a91d0d90a83b25d8327248d051e60c39e2da746b6084
Contents?: true
Size: 412 Bytes
Versions: 17
Compression:
Stored size: 412 Bytes
Contents
class DeleteAutomaticallyGeneratedMessagesForReleases < ActiveRecord::Migration def up Release.with_message.find_each do |release| new_message = release.message.strip new_message = "" if new_message =~ /^Hey everyone!\s+\d+ changes? (has|have) been deployed to \w+\.?$/ release.update_column :message, new_message unless release.message == new_message end end def down end end
Version data entries
17 entries across 17 versions & 1 rubygems