Class: CreateCountryCodes
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateCountryCodes
- Defined in:
- lib/generators/templates/create_country_codes.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/generators/templates/create_country_codes.rb', line 2 def change create_table :country_codes do |t| t.string :country t.string :country_code t.string :currency t.string :currency_code t. end end |