Sha256: 834be18a68a89dd1bd1485ba3cd20a01ec099d5d67c9d53f551bed44bce3cda6
Contents?: true
Size: 456 Bytes
Versions: 16
Compression:
Stored size: 456 Bytes
Contents
class AdjustNoteLanguagesSetting < ActiveRecord::Migration class ConfigSettings < ActiveRecord::Base self.table_name = 'configuration_settings' end def up record = ConfigSettings.where('key' => 'note_languages').first record.update_attribute('key', 'languages.notes') if record end def down record = ConfigSettings.where('key' => 'languages.notes').first record.update_attribute('key', 'note_languages') if record end end
Version data entries
16 entries across 16 versions & 1 rubygems