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.30 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.28 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.27 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.25 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.24 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.23 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.22 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.21 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.20 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.19 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.18 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.17 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.16 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.15 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.14 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.13 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.12 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.10 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.9 db/migrate/0010_add_fields_to_users.rb
wheels-0.1.8 db/migrate/0010_add_fields_to_users.rb