Sha256: 877ebfbdc531defe7af3dbc6160f97d179302215c1494391ddfb6b1c2fd93120
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
class TheAuthInit < ActiveRecord::Migration[5.1] def change create_table :users do |t| t.string :name, limit: 100 t.string :avatar t.string :email, limit: 100 t.boolean :email_confirm, default: false t.string :mobile, limit: 20 t.boolean :mobile_confirm, default: false t.string :password_digest t.datetime :last_login_at t.string :last_login_ip t.boolean :disabled, default: false t.string :timezone t.string :locale t.timestamps end create_table :verify_tokens do |t| t.references :user t.string :type, limit: 100 t.string :token t.datetime :expired_at t.string :account t.integer :access_counter, default: 0 t.timestamps end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_auth-1.0.5 | db/migrate/20170518023400_the_auth_init.rb |
rails_auth-1.0.4 | db/migrate/20170518023400_the_auth_init.rb |