Sha256: 1ae55dfd6f2281631bc466c7e376856e17f005f4e927afb05547f57a6bcc832c
Contents?: true
Size: 845 Bytes
Versions: 4
Compression:
Stored size: 845 Bytes
Contents
class UpdatePlutusTables < ActiveRecord::Migration def change # we have to remove these indexes because the temporary # table index name is too long remove_index :plutus_amounts, [:account_id, :transaction_id] remove_index :plutus_amounts, [:transaction_id, :account_id] remove_index :plutus_transactions, column: [:commercial_document_id, :commercial_document_type], :name => "index_transactions_on_commercial_doc" rename_table :plutus_transactions, :plutus_entries rename_column :plutus_amounts, :transaction_id, :entry_id # adding the indexes back add_index :plutus_amounts, [:account_id, :entry_id] add_index :plutus_amounts, [:entry_id, :account_id] add_index :plutus_entries, [:commercial_document_id, :commercial_document_type], :name => "index_entries_on_commercial_doc" end end
Version data entries
4 entries across 4 versions & 1 rubygems