Class: CreateStates

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/migrations/create_states.rb

Overview

Create state migration file

Instance Method Summary collapse

Instance Method Details

#changeObject



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.timestamps null: false
  end
end