Class: CreateUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUsers
- Defined in:
- lib/generators/fetty/authentication/templates/models/active_record/create_users.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 |
# File 'lib/generators/fetty/authentication/templates/models/active_record/create_users.rb', line 14 def self.down drop_table :users end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/fetty/authentication/templates/models/active_record/create_users.rb', line 2 def self.up create_table :users do |t| t.string :username t.string :email t.string :password_hash t.string :password_salt t.datetime :activated_at t.string :token t. end end |