Sha256: cebac51abdc9ef09483318024b0475755f042207aba74016f2849636522f3496

Contents?: true

Size: 219 Bytes

Versions: 34

Compression:

Stored size: 219 Bytes

Contents

class AddUniqueIndexToReceipts < ActiveRecord::Migration
  def change
    add_index :message_train_receipts, [:message_train_message_id, :recipient_type, :recipient_id], name: :message_recipient, unique: true
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
message_train-0.7.6 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.7.5 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.7.3 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.7.2 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.7.1 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.17 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.16 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.15 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.14 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.13 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.12 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.11 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.10 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.9 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.8 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.7 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.6 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.5 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.4 db/migrate/20151004184347_add_unique_index_to_receipts.rb
message_train-0.6.3 db/migrate/20151004184347_add_unique_index_to_receipts.rb