Class: CreateRoles
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateRoles
- Defined in:
- lib/generators/humanity/templates/create_roles.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/generators/humanity/templates/create_roles.rb', line 2 def change create_table :roles do |t| t.string :name, null: false end add_index :roles, :name end |