Sha256: eb32f09831caa3d8d07db8fe1f23d02853d7dc831412c7cd3413043363ea5769

Contents?: true

Size: 275 Bytes

Versions: 15

Compression:

Stored size: 275 Bytes

Contents

# This migration comes from message_train (originally 20151004184347)
class AddUniqueIndexToReceipts < ActiveRecord::Migration
  def change
    add_index :message_train_receipts, [:message_id, :recipient_type, :recipient_id], name: :message_recipient, unique: true
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
message_train-0.3.1 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.3.0 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.12 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.11 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.10 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.9 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.8 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.7 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.6 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.5 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.4 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.3 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.2 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.1 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb
message_train-0.2.0 spec/dummy/db/migrate/20151004184519_add_unique_index_to_receipts.message_train.rb