Sha256: 85860e010513a181b2a6004d0a438812ba340bafbed302a3935511f40e5e6108

Contents?: true

Size: 565 Bytes

Versions: 17

Compression:

Stored size: 565 Bytes

Contents

class AddActivationToUsers < ActiveRecord::CompatibleLegacyMigration.migration_class
  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

17 entries across 17 versions & 1 rubygems

Version Path
sorcery-0.17.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.16.5 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.16.4 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.16.3 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.16.2 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.16.1 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.15.1 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.16.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.15.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.14.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.13.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.12.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.11.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.10.3 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.10.2 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.10.1 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb
sorcery-0.10.0 spec/rails_app/db/migrate/activation/20101224223622_add_activation_to_users.rb