Sha256: 2ec2da1451f396d74595f5f356889f3ebff99d025d9f4ed3c15979e7dff46844

Contents?: true

Size: 631 Bytes

Versions: 9

Compression:

Stored size: 631 Bytes

Contents

# This migration comes from mailboxer_engine (originally 20131206080416)
class AddConversationOptout < ActiveRecord::Migration
  def self.up
    create_table :mailboxer_conversation_opt_outs do |t|
      t.references :unsubscriber, :polymorphic => true
      t.references :conversation
    end
    add_foreign_key "mailboxer_conversation_opt_outs", "mailboxer_conversations", :name => "mb_opt_outs_on_conversations_id", :column => "conversation_id"
  end

  def self.down
    remove_foreign_key "mailboxer_conversation_opt_outs", :name => "mb_opt_outs_on_conversations_id"
    drop_table :mailboxer_conversation_opt_outs
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
mailboxer_multi_attach-0.0.6 spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb
mailboxer_multi_attach-0.0.5 spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb
mailboxer_multi_attach-0.0.4 spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb
mailboxer_multi_attach-0.0.3 spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb
mailboxer_multi_attach-0.0.2 spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb
mailboxer_multi_attach-0.0.1 spec/dummy/db/migrate/20151123152909_add_conversation_optout.mailboxer_engine.rb
pshq_engine-0.1.6 db/migrate/20140406040248_add_conversation_optout.mailboxer_engine.rb
pshq_engine-0.1.5 db/migrate/20140406040248_add_conversation_optout.mailboxer_engine.rb
pshq_engine-0.0.1 db/migrate/20140406040248_add_conversation_optout.mailboxer_engine.rb