Sha256: d5a453af1d4738c0dc76a3ba68fca8009aaae495ac5eb487a6410f72ca730e51
Contents?: true
Size: 254 Bytes
Versions: 55
Compression:
Stored size: 254 Bytes
Contents
class PreventNilEmail < ActiveRecord::Migration def self.up execute("update orders set email = 'guest@example.com' where email is null") execute("update orders set email = 'guest@example.com' where email = ''") end def self.down end end
Version data entries
55 entries across 43 versions & 9 rubygems