X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0e7127832037902f83cd15db2d413c23576eade7..ded669bb4de31137c8956d8ba40a24a220864ea3:/db/migrate/034_create_languages.rb diff --git a/db/migrate/034_create_languages.rb b/db/migrate/034_create_languages.rb index ca9552d98..daaf21991 100644 --- a/db/migrate/034_create_languages.rb +++ b/db/migrate/034_create_languages.rb @@ -10,7 +10,11 @@ class CreateLanguages < ActiveRecord::Migration add_primary_key :languages, [:code] - Language.create(:code => 'en', :name => 'English', :translation_available => true) + Language.create do |l| + l.code = 'en' + l.name = 'English' + l.translation_available = true + end add_foreign_key :users, [:locale], :languages, [:code] add_foreign_key :diary_entries, [:language], :languages, [:code]