Class: CreateUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUsers
- Defined in:
- lib/generators/sso/auth/templates/db/migrate/create_users.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/sso/auth/templates/db/migrate/create_users.rb', line 2 def change create_table :users do | t | t.string :uid # omniauth[:uid] t.text :name, :email # omniauth[:info] t.text :raw_info # omniauth[:extra] # Devise trackable fields t.integer :sign_in_count t.datetime :current_sign_in_at t.datetime :last_sign_in_at t.string :current_sign_in_ip t.string :last_sign_in_ip t. end add_index :users, :uid end |