Sha256: 6bcbc3efcd89fdb971d6885610dd9ba3342b89d7865f9216ee93de2115f0d877
Contents?: true
Size: 536 Bytes
Versions: 20
Compression:
Stored size: 536 Bytes
Contents
# This migration comes from erp_base_erp_svcs (originally 20130404171435) require 'uuid' class AddUuidCompassAeInstance < ActiveRecord::Migration def self.up unless columns(:compass_ae_instances).collect {|c| c.name}.include?('guid') add_column :compass_ae_instances, :guid, :string add_index :compass_ae_instances, :guid, :name => "guid_idx" end end def self.down if columns(:compass_ae_instances).collect {|c| c.name}.include?('guid') remove_column :compass_ae_instances, :guid end end end
Version data entries
20 entries across 20 versions & 6 rubygems