Sha256: 862ea503eec748a3b8d4c8fa608b287670eea8d8f8e391153b679e045ab7a9a1

Contents?: true

Size: 984 Bytes

Versions: 73

Compression:

Stored size: 984 Bytes

Contents

class AddFieldsToUsers < ActiveRecord::Migration
  def self.up
    add_column :users, :confirmation_token, :string
    add_column :users, :confirmed_at, :datetime
    add_column :users, :confirmation_sent_at, :datetime
    add_column :users, :failed_attempts, :integer, :default => 0
    add_column :users, :unlock_token, :string
    add_column :users, :locked_at, :datetime
    add_column :users, :authentication_token, :string
    add_column :users, :login, :string
    add_column :users, :name, :string
    add_column :users, :role_id, :integer
  end

  def self.down
    remove_column :users, :confirmation_token
    remove_column :users, :confirmed_at
    remove_column :users, :confirmation_sent_at
    remove_column :users, :failed_attempts
    remove_column :users, :unlock_token
    remove_column :users, :locked_at
    remove_column :users, :authentication_token
    remove_column :users, :login
    remove_column :users, :name
    remove_column :users, :role_id
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
wheels-0.1.7 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.6 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.5 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.4 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.3 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.2 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.1 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.0 db/migrate/0010_add_fields_to_users.rb
wheels-0.0.49 db/migrate/0010_add_fields_to_users.rb
wheels-0.0.48 db/migrate/add_fields_to_users.rb
wheels-0.0.47 db/migrate/add_fields_to_users.rb
wheels-0.0.46 db/migrate/add_fields_to_users.rb
wheels-0.0.45 db/migrate/add_fields_to_users.rb
wheels-0.0.44 db/migrate/add_fields_to_users.rb
wheels-0.0.43 db/migrate/add_fields_to_users.rb
wheels-0.0.42 db/migrate/add_fields_to_users.rb
wheels-0.0.41 db/migrate/add_fields_to_users.rb
wheels-0.0.40 db/migrate/add_fields_to_users.rb
wheels-0.0.39 db/migrate/add_fields_to_users.rb
wheels-0.0.38 db/migrate/add_fields_to_users.rb