today_ai_weather/db/seeds/cities/thailand.rb

14 lines
223 B
Ruby
Raw Normal View History

thailand = Country.find_by code: 'TH'
City.create!([
{
name: 'Bangkok',
latitude: 13.7563,
longitude: 100.5018,
country: thailand,
timezone: 'Asia/Bangkok',
active: true,
priority: 100
}
])