Sha256: f560becd8f9a5978ce6fefd796a18c53733e13fe37b2a458547aa0a8a1202624
Contents?: true
Size: 535 Bytes
Versions: 145
Compression:
Stored size: 535 Bytes
Contents
class UpcaseSshFeature < ActiveRecord::Migration[4.2] class FakeFeature < ApplicationRecord self.table_name = 'features' end def up f = FakeFeature.where(:name => 'Ssh').first f.update_attribute :name, 'SSH' if f.present? JobTemplate.where(:provider_type => 'Ssh').update_all("provider_type = 'SSH'") end def down f = FakeFeature.where(:name => 'SSH').first f.update_attribute :name, 'Ssh' if f.present? JobTemplate.where(:provider_type => 'SSH').update_all("provider_type = 'Ssh'") end end
Version data entries
145 entries across 145 versions & 1 rubygems