Sha256: 5653432effb128bf0a15f11aa2ac1f7719e71a1c5f29125b12549dd6b85899a9

Contents?: true

Size: 1.36 KB

Versions: 11

Compression:

Stored size: 1.36 KB

Contents

class CreateUsers < ActiveRecord::Migration[5.1]
  def up
    create_table :users, force: true do |t|
      t.boolean :admin, null: false, default: false
      t.integer :status, null: false, default: 1, index: true

      t.string :login, null: false
      t.string :first_name
      t.string :last_name
      t.string :email, null: false
      t.string :language, null: true
      # Authlogic::ActsAsAuthentic::Password
      t.string    :crypted_password
      t.string    :password_salt

      # Authlogic::ActsAsAuthentic::PersistenceToken
      t.string    :persistence_token
      t.index     :persistence_token, unique: true

      # Authlogic::ActsAsAuthentic::SingleAccessToken
      t.string    :single_access_token
      t.index     :single_access_token, unique: true

      # Authlogic::ActsAsAuthentic::PerishableToken
      t.string    :perishable_token
      t.index     :perishable_token, unique: true

      # Authlogic::Session::MagicColumns
      t.integer   :login_count, default: 0, null: false
      t.integer   :failed_login_count, default: 0, null: false
      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

      t.references :edited_by
      t.datetime :edited_at

      t.timestamps
    end
  end

  def down
    drop_table :users
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
symphonia-6.0.6 db/migrate/20130714140500_create_users.rb
symphonia-6.0.5 db/migrate/20130714140500_create_users.rb
symphonia-6.0.4 db/migrate/20130714140500_create_users.rb
symphonia-6.0.2 db/migrate/20130714140500_create_users.rb
symphonia-6.0.1 db/migrate/20130714140500_create_users.rb
symphonia-6.0.0 db/migrate/20130714140500_create_users.rb
symphonia-5.0.6 db/migrate/20130714140500_create_users.rb
symphonia-5.0.5 db/migrate/20130714140500_create_users.rb
symphonia-5.0.4 db/migrate/20130714140500_create_users.rb
symphonia-5.0.3 db/migrate/20130714140500_create_users.rb
symphonia-5.0.0 db/migrate/20130714140500_create_users.rb