Sha256: b874a24b0871d6b0e883158ccdac42c652d95108d5713e714b6ec9872950e046

Contents?: true

Size: 319 Bytes

Versions: 49

Compression:

Stored size: 319 Bytes

Contents

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 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.7.5 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.7.3 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.7.2 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.7.1 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.17 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.16 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.15 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.14 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.13 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.12 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.11 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.10 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.9 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.8 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.7 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.6 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.5 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.4 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb
message_train-0.6.3 db/migrate/20150901183458_add_received_through_to_message_train_receipts.rb