Sha256: cb9c8ae023a88a316d5622fc0b854c92106caaba4034fc7baa27fbd6bed513d8

Contents?: true

Size: 344 Bytes

Versions: 2

Compression:

Stored size: 344 Bytes

Contents

class AddActivableTo<%= table_name.camelize %> < ActiveRecord::Migration
  def change
    add_column :<%= table_name %>, :activated_at, :datetime
    add_column :<%= table_name %>, :deactivated_at, :datetime
    add_column :<%= table_name %>, :activated_by_id, :integer
    add_column :<%= table_name %>, :deactivated_by_id, :integer
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activable-0.1.1 lib/generators/templates/migration.rb
activable-0.1.0 lib/generators/templates/migration.rb