Sha256: c5c25eb8b9454e9120e422c5f95bb330364421b50f99a817597f62f48e1249f9
Contents?: true
Size: 869 Bytes
Versions: 5
Compression:
Stored size: 869 Bytes
Contents
class AddStiToSettings < ActiveRecord::Migration def self.up execute "UPDATE settings set category='Setting::Auth' where category='Auth'" execute "UPDATE settings set category='Setting::General' where category='General'" execute "UPDATE settings set category='Setting::Puppet' where category='Puppet'" execute "UPDATE settings set category='Setting::Provisioning' where category='Provisioning'" add_index :settings, :category end def self.down execute "UPDATE settings set category='Auth' where category='Setting::Auth'" execute "UPDATE settings set category='General' where category='Setting::General'" execute "UPDATE settings set category='Puppet' where category='Setting::Puppet'" execute "UPDATE settings set category='Provisioning' where category='Setting::Provisioning'" remove_index :settings, :category end end
Version data entries
5 entries across 5 versions & 1 rubygems