Sha256: 887d2dfcea239cff8681eb7378c91faf9d2109c8fde301425b4031a1f40424f5

Contents?: true

Size: 1.99 KB

Versions: 14

Compression:

Stored size: 1.99 KB

Contents

# This migration comes from tb_core (originally 20111214161146)
class CreateSpudUsers < ActiveRecord::Migration
  def change
    create_table :spud_users do |t|

      t.string :first_name
      t.string :last_name
      t.boolean :super_admin
      t.string    :login,               null: false                # optional, you can use email instead, or both
      t.string    :email,               null: false                # optional, you can use login 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, just like ActiveRecord's created_at and updated_at. These are automatically maintained by Authlogic if they are present.
      t.integer   :login_count,         null: false, default: 0 # optional, see Authlogic::Session::MagicColumns
      t.integer   :failed_login_count,  null: false, default: 0 # optional, see Authlogic::Session::MagicColumns
      t.datetime  :last_request_at                                    # optional, see Authlogic::Session::MagicColumns
      t.datetime  :current_login_at                                   # optional, see Authlogic::Session::MagicColumns
      t.datetime  :last_login_at                                      # optional, see Authlogic::Session::MagicColumns
      t.string    :current_login_ip                                   # optional, see Authlogic::Session::MagicColumns
      t.string    :last_login_ip                                      # optional, see Authlogic::Session::MagicColumns
      t.timestamps
    end
    add_index :spud_users, :login
    add_index :spud_users, :email
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
tb_blog-1.4.4 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_media-1.3.2 spec/dummy/db/migrate/20130904141442_create_spud_users.tb_core.rb
tb_blog-1.4.3 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_blog-1.4.2 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_media-1.3.1 spec/dummy/db/migrate/20130904141442_create_spud_users.tb_core.rb
tb_blog-1.3.5 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_cms-1.3.0 spec/dummy/db/migrate/20141231214447_create_spud_users.tb_core.rb
tb_media-1.3.0 spec/dummy/db/migrate/20130904141442_create_spud_users.tb_core.rb
tb_blog-1.4.1 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_blog-1.4.0 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_cms-1.3.beta1 spec/dummy/db/migrate/20141231214447_create_spud_users.tb_core.rb
tb_media-1.3.beta1 spec/dummy/db/migrate/20130904141442_create_spud_users.tb_core.rb
tb_blog-1.3.4 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb
tb_blog-1.4.beta1 spec/dummy/db/migrate/20161020155426_create_spud_users.tb_core.rb