Class: CreateUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUsers
- Defined in:
- lib/generators/authkit/templates/db/migrate/create_users.rb
Overview
Generated by Authkit.
Create a users table for managing authentication. Fields to handle the authentication are created in the AddAuthkitFieldsToUsers migration.
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/generators/authkit/templates/db/migrate/create_users.rb', line 14 def self.down drop_table :users end |
.up ⇒ Object
8 9 10 11 12 |
# File 'lib/generators/authkit/templates/db/migrate/create_users.rb', line 8 def self.up create_table :users do |t| t. end end |