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

Version Path
bovespa_ingestion-0.3.2 db/migrate/20111223213342_alter_reference_historico_ativo.rb
bovespa_ingestion-0.3.1 db/migrate/20111223213342_alter_reference_historico_ativo.rb
bovespa_ingestion-0.3.0 db/migrate/20111223213342_alter_reference_historico_ativo.rb
bovespa_ingestion-0.2.0 db/migrate/20111223213342_alter_reference_historico_ativo.rb
bovespa_ingestion-0.1.0 db/migrate/20111223213342_alter_reference_historico_ativo.rb