Sha256: 0067a0e88c611225afd20f194283f4f8231e43025f16200177c16c9732aa692c

Contents?: true

Size: 389 Bytes

Versions: 49

Compression:

Stored size: 389 Bytes

Contents

# This migration comes from message_train (originally 20150901183458)
class AddReceivedThroughToMessageTrainReceipts < ActiveRecord::Migration
  def change
    add_reference :message_train_receipts, :received_through, polymorphic: true
    add_index :message_train_receipts, [:received_through_type, :received_through_id], name: :index_message_train_receipts_on_received_through
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

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