songtianlun
ebaf7a3f34
- Implement Country and Region models - Establish relationships between City, Country, and Region - Update ActiveAdmin setup for managing countries and regions - Add localization support for cities and countries in multiple languages - Create necessary migrations to support the new schema This update allows for better categorization of cities under their respective countries and regions, enhancing geographical structure and support for multilingual features.
6 lines
147 B
Ruby
6 lines
147 B
Ruby
class AddCountryToCities < ActiveRecord::Migration[8.0]
|
|
def change
|
|
add_reference :cities, :country, null: false, foreign_key: true
|
|
end
|
|
end
|