Class: CreateStates
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateStates
- Defined in:
- lib/generators/templates/migrations/create_states.rb
Overview
Create state migration file
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
3 4 5 6 7 8 |
# File 'lib/generators/templates/migrations/create_states.rb', line 3 def change create_table :states do |t| t.string :name t. null: false end end |