about summary refs log tree commit diff stats
path: root/app/assets
Commit message (Expand)AuthorAgeFilesLines
* Styled flash and errors in admin panelKelly Rauchenberger2017-07-021-1/+45
* Styled password reset formKelly Rauchenberger2017-07-021-3/+18
* Created admin panelKelly Rauchenberger2017-07-02156-2/+11662
* Styled figures in blog postsKelly Rauchenberger2017-06-301-0/+19
* Split up stylesheets for each layoutKelly Rauchenberger2017-06-307-252/+242
* Worked on sidebar styleKelly Rauchenberger2017-06-291-15/+34
* Made ponies actually trotKelly Rauchenberger2017-06-291-0/+6
* Worked more on overall layout, made ponies clickableKelly Rauchenberger2017-06-291-12/+14
* Worked on style of blog postsKelly Rauchenberger2017-06-292-0/+70
* Worked on layout more, added trotting poniesKelly Rauchenberger2017-06-252-27/+21
* Added logging in and logging outKelly Rauchenberger2017-06-251-1/+138
* Worked on design, and added small bioKelly Rauchenberger2017-06-252-6/+10
* Started designing index pageKelly Rauchenberger2017-06-255-0/+129
* Initial commitKelly Rauchenberger2017-06-246-0/+46
highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
class DeviseCreateUsers < ActiveRecord::Migration[5.1]
  def change
    create_table :users do |t|
      ## Database authenticatable
      t.string :login,              null: false, default: ""
      t.string :email,              null: false, default: ""
      t.string :encrypted_password, null: false, default: ""

      ## Recoverable
      t.string   :reset_password_token
      t.datetime :reset_password_sent_at

      ## Rememberable
      t.datetime :remember_created_at

      ## Trackable
      t.integer  :sign_in_count, default: 0, null: false
      t.datetime :current_sign_in_at
      t.datetime :last_sign_in_at
      t.string   :current_sign_in_ip
      t.string   :last_sign_in_ip

      ## Confirmable
      # t.string   :confirmation_token
      # t.datetime :confirmed_at
      # t.datetime :confirmation_sent_at
      # t.string   :unconfirmed_email # Only if using reconfirmable

      ## Lockable
      # t.integer  :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
      # t.string   :unlock_token # Only if unlock strategy is :email or :both
      # t.datetime :locked_at


      t.timestamps null: false
    end

    add_index :users, :login,                unique: true
    add_index :users, :email,                unique: true
    add_index :users, :reset_password_token, unique: true
    # add_index :users, :confirmation_token,   unique: true
    # add_index :users, :unlock_token,         unique: true
  end
end