Sha256: 3d14e19bcfd9f0086456483670873a2bcf2b772927f6969831bcdae1670d0311

Contents?: true

Size: 472 Bytes

Versions: 3

Compression:

Stored size: 472 Bytes

Contents

# typed: ignore
class AddRecipientPermanentDeleteAndSenderPermanentDeleteToMessages < ActiveRecord::Migration[4.2]
  def self.up
    add_column :<%= table_name %>, :recipient_permanent_delete, :boolean, :default => false
    add_column :<%= table_name %>, :sender_permanent_delete, :boolean, :default => false
  end

  def self.down
    remove_column :<%= table_name %>, :recipient_permanent_delete
    remove_column :<%= table_name %>, :sender_permanent_delete
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts-as-messageable-1.0.2 lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb
acts-as-messageable-1.0.1 lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb
acts-as-messageable-1.0.0 lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb