Class: CreateUsers
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUsers
- Defined in:
- lib/generators/acts_as_tokenable/dummy/templates/db/migrate/20150108203658_create_users.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/acts_as_tokenable/dummy/templates/db/migrate/20150108203658_create_users.rb', line 2 def change create_table :users do |t| t.string :name t.string :email, unique: true t.string :password_digest t. null: false end end |