Sha256: b8d7ba6da96241267bbdb0817d4ec420b6323220edd4784eb727e2766c2ddc48

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

class AddConversationOptout < ActiveRecord::Migration[4.2]
  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

4 entries across 2 versions & 1 rubygems

Version Path
mailboxer-0.15.1 db/migrate/20131206080416_add_conversation_optout.rb
mailboxer-0.15.1 spec/dummy/db/migrate/20131206080416_add_conversation_optout.rb
mailboxer-0.15.0 db/migrate/20131206080416_add_conversation_optout.rb
mailboxer-0.15.0 spec/dummy/db/migrate/20131206080416_add_conversation_optout.rb