Sha256: cf1d07f7e0bb5fc109a78c83fbb4cd41eaf25f6ac02711b18745b9d88ba10cb3

Contents?: true

Size: 581 Bytes

Versions: 23

Compression:

Stored size: 581 Bytes

Contents

class CreateMessageTrainReceipts < ActiveRecord::Migration
  def change
    create_table :message_train_receipts do |t|
      t.references :recipient, polymorphic: true
      t.references :message, index: true, foreign_key: true
      t.boolean :marked_read, default: false
      t.boolean :marked_trash, default: false
      t.boolean :marked_deleted, default: false
      t.boolean :sender, default: false

      t.timestamps null: false
    end

    add_index :message_train_receipts, [:recipient_type, :recipient_id], name: :index_message_train_receipts_on_recipient
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
message_train-0.1.2 db/migrate/20150721161940_create_message_train_receipts.rb
message_train-0.1.1 db/migrate/20150721161940_create_message_train_receipts.rb
message_train-0.1.0 db/migrate/20150721161940_create_message_train_receipts.rb