Sha256: 314949a7f91427ad0355018d01d483a9342f50a5c18ce1192a349a50268f8376
Contents?: true
Size: 851 Bytes
Versions: 1
Compression:
Stored size: 851 Bytes
Contents
class UpdatePlutusTables < ActiveRecord::Migration[5.2] def change # we have to remove these indexes because the temporary # table index name is too long remove_index :credere_amounts, [:account_id, :transaction_id] remove_index :credere_amounts, [:transaction_id, :account_id] remove_index :credere_transactions, column: [:commercial_document_id, :commercial_document_type], :name => "index_transactions_on_commercial_doc" rename_table :credere_transactions, :credere_entries rename_column :credere_amounts, :transaction_id, :entry_id # adding the indexes back add_index :credere_amounts, [:account_id, :entry_id] add_index :credere_amounts, [:entry_id, :account_id] add_index :credere_entries, [:commercial_document_id, :commercial_document_type], :name => "index_entries_on_commercial_doc" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
credere-0.10.1 | lib/generators/credere/templates/update_migration.rb |