Sha256: fa458c5e1c9d1938da9a772ec4d6c72084e04e8aba791bbbbc8c0bed77c5b6af
Contents?: true
Size: 341 Bytes
Versions: 68
Compression:
Stored size: 341 Bytes
Contents
class NullifyEmptyThoughtsColumns < ActiveRecord::Migration def up Thought.all.each do |thought| # force before_validation callback to run thought.valid? thought.update_columns( challenging_thought: thought.challenging_thought, act_as_if: thought.act_as_if ) end end def down end end
Version data entries
68 entries across 68 versions & 1 rubygems