Sha256: adeafc64e436a876fc84d1246a2adc07d4a269d24a72443f8c46d7f6f44c2606
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
class AdjustNoteLanguagesSetting < ActiveRecord::Migration[4.2] class ConfigSettings < ApplicationRecord 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
4 entries across 4 versions & 1 rubygems