Sha256: 9431de5677f9712673e5588cf2bc0768c1a0b60a0c1ea8d9a9d31d0f17223031

Contents?: true

Size: 651 Bytes

Versions: 23

Compression:

Stored size: 651 Bytes

Contents

# This migration comes from message_train (originally 20150721161940)
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.3.1 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.3.0 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.12 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.11 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.10 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.9 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.8 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.7 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.6 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.5 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.4 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.3 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.2 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.1 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.2.0 spec/dummy/db/migrate/20150901183632_create_message_train_receipts.message_train.rb
message_train-0.1.7 spec/dummy/db/migrate/20150724142849_create_message_train_receipts.night_train.rb
message_train-0.1.6 spec/dummy/db/migrate/20150724142849_create_message_train_receipts.night_train.rb
message_train-0.1.5 spec/dummy/db/migrate/20150724142849_create_message_train_receipts.night_train.rb
message_train-0.1.4 spec/dummy/db/migrate/20150724142849_create_message_train_receipts.night_train.rb
message_train-0.1.3 spec/dummy/db/migrate/20150724142849_create_message_train_receipts.night_train.rb