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

Version Path
iqvoc-4.12.1 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.12.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.11.1 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.11.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.10.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.9.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.8.2 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.8.1 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.8.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.7.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.6.1 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.5.2 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.6.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.5.1 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.5.0 db/migrate/20130508103137_adjust_note_languages_setting.rb
iqvoc-4.4.0 db/migrate/20130508103137_adjust_note_languages_setting.rb