Class: AddActivationFieldsToUser

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/branston/db/migrate/20100726150322_add_activation_fields_to_user.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/branston/db/migrate/20100726150322_add_activation_fields_to_user.rb', line 7

def self.down
  remove_column :users, :activated_at
  remove_column :users, :activation_code
end

.upObject



2
3
4
5
# File 'lib/branston/db/migrate/20100726150322_add_activation_fields_to_user.rb', line 2

def self.up
  add_column :users, :activated_at, :datetime
  add_column :users, :activation_code, :string, :limit => 40
end