Sha256: 10ae001c7398038f5925bc0109277dc59bc48aeceefaea4740185b3d2264a857

Contents?: true

Size: 451 Bytes

Versions: 12

Compression:

Stored size: 451 Bytes

Contents

class AddRecipientPermanentDeleteAndSenderPermanentDeleteToMessages < ActiveRecord::Migration
  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

12 entries across 12 versions & 1 rubygems

Version Path
acts-as-messageable-0.4.11 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.10 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.9 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.8 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.7 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.6 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.5 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.4 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.3 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.2 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.1 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb
acts-as-messageable-0.4.0 lib/generators/acts-as-messageable/migration/templates/migration_permanent.rb