Sha256: 9d9b776792f13e075c0b6554fa411cee01a693420c9d04878929608d4f66e4b1

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

class AddActivationToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :activation_state, :string, :default => nil
    add_column :users, :activation_token, :string, :default => nil
    add_column :users, :activation_token_expires_at, :datetime, :default => nil

    add_index :users, :activation_token
  end

  def self.down
    remove_index :users, :activation_token

    remove_column :users, :activation_token_expires_at
    remove_column :users, :activation_token
    remove_column :users, :activation_state
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
sorcery-0.9.1 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.9.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
cbsorcery-0.8.6 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
cb-sorcery-0.8.6 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.8.6 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.8.5 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb