Sha256: 8be53ce61df654b16c51ed27e4ea7e84936892371fedd79cfda49ffef1ed70d1

Contents?: true

Size: 1.09 KB

Versions: 59

Compression:

Stored size: 1.09 KB

Contents

class AdaptForAuthlogic < ActiveRecord::Migration
  def self.up
    add_column :readers, :persistence_token, :string, :null => false, :default => ""
    add_column :readers, :single_access_token, :string, :null => false, :default => ""
    add_column :readers, :perishable_token, :string, :null => false, :default => ""
    add_column :readers, :login_count, :integer, :null => false, :default => 0
    add_column :readers, :failed_login_count, :integer, :null => false, :default => 0
    add_column :readers, :current_login_ip, :string
    add_column :readers, :last_login_ip, :string
    add_column :readers, :clear_password, :string

    change_column :readers, :password, :string, :limit => 255
    change_column :readers, :salt, :string, :limit => 255

    rename_column :readers, :password, :crypted_password
    rename_column :readers, :salt, :password_salt
    rename_column :readers, :last_seen, :last_request_at
    rename_column :readers, :last_login, :last_login_at
    
    remove_column :readers, :activation_code
    remove_column :readers, :previous_login    
  end
  
  def self.down

  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.38 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.37 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.36 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.35 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.33 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.32 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.31 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.30 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.29 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.28 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.27 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.26 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.25 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.24 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.23 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.20 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.19 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.18 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.17 db/migrate/007_adapt_for_authlogic.rb
radiant-reader-extension-3.0.16 db/migrate/007_adapt_for_authlogic.rb