Sha256: 1b51bbfec8d9947324c4d90bf2854cba0b4f10646beafa3ccdcecd6b7645ca72

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

class AddRecipientPermanentDeleteAndSenderPermanentDeleteToMessages < ActiveRecord::Migration
  def self.up
    add_column :messages, :recipient_permanent_delete, :boolean, :default => false
    add_column :messages, :sender_permanent_delete, :boolean, :default => false
  end

  def self.down
    remove_column :messages, :recipient_permanent_delete
    remove_column :messages, :sender_permanent_delete
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acts_as_chattable-0.0.4 lib/generators/acts_as_chattable/migration/templates/migration_permanent.rb
acts_as_chattable-0.0.3 lib/generators/acts_as_chattable/migration/templates/migration_permanent.rb
acts_as_chattable-0.0.2 lib/generators/acts_as_chattable/migration/templates/migration_permanent.rb
acts_as_chattable-0.0.1 lib/generators/acts_as_chattable/migration/templates/migration_permanent.rb