class CreateRegency
Public Instance Methods
change()
click to toggle source
# File lib/generators/indonesian_territory/templates/create_regency.rb, line 9 def change create_table :regencies do |t| t.string :name t.timestamps end add_reference :regencies, :province, foreign_key: true, after: :id end