today_ai_weather/db/seeds/cities/singapore.rb

14 lines
228 B
Ruby
Raw Normal View History

singapore = Country.find_by code: 'SG'
City.create!([
{
name: 'Singapore',
latitude: 1.3521,
longitude: 103.8198,
country: singapore,
timezone: 'Asia/Singapore',
active: true,
priority: 100
}
])