Sha256: 6f70b3799924821f512114c6e66cd4caf1f70dc1ccc9f4d92a8e695ccebe3742

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

class DeviseInvitableAddTo<%= table_name.camelize %> < ActiveRecord::Migration
  def up
    change_table :<%= table_name %> do |t|
      t.datetime   :first_sign_in_at
      t.string     :first_sign_in_ip
    end
  end

  def down
    change_table :<%= table_name %> do |t|
      t.remove :first_sign_ip, :first_sign_in_at
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_imprintable-0.0.2 lib/generators/active_record/templates/migration.rb