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