Sha256: e973bfc73e4862813f54b162006be74f9da2097575aea4a7e79bd4ba12b95be2
Contents?: true
Size: 398 Bytes
Versions: 5
Compression:
Stored size: 398 Bytes
Contents
class AlterReferenceHistoricoAtivo < ActiveRecord::Migration def self.up remove_index :ativos, :historico_ativo_id rename_column :ativos, :historico_ativo_id, :historico_id add_index :ativos, :historico_id end def self.down remove_index :ativos, :historico_id rename_column :ativos, :historico_id, :historico_ativo_id add_index :ativos, :historico_ativo_id end end
Version data entries
5 entries across 5 versions & 1 rubygems