Sha256: 7508347338e08288d48b9a68230f1de8d2df6c76006401e7ddc47a2825ba4505
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
class ABUsers < ActiveRecord::Migration def self.up create_table :a_b_users do |t| t.string :login, :null => false # optional, you can use email instead, or both t.string :crypted_password, :null => false # optional, see below t.string :password_salt, :null => false # optional, but highly recommended t.string :persistence_token, :null => false # required t.string :single_access_token, :null => false # optional, see Authlogic::Session::Params t.string :perishable_token, :null => false # optional, see Authlogic::Session::Perishability # Magic columns, all optional, see Authlogic::Session::MagicColumns t.integer :login_count, :null => false, :default => 0 t.integer :failed_login_count, :null => false, :default => 0 t.datetime :last_request_at t.datetime :current_login_at t.datetime :last_login_at t.string :current_login_ip t.string :last_login_ip end end def self.down drop_table :users end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
a_b-0.1.1 | db/migrate/003_a_b_users.rb |
a_b-0.1.0 | db/migrate/003_a_b_users.rb |