-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguages.seeds_old.rb
19 lines (18 loc) · 1.44 KB
/
languages.seeds_old.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true
# rubocop:disable all
# Seeds for a Language model in a standard Relational Database.
# Schema is:
# Country { name: 'String', native: 'String', family: 'String', scope: 'String', type_of: 'String', iso_639_1: 'String', iso_639_2b: 'String', iso_639_3: 'String' }
#
[
{ name: 'Ghotuo', native: '', family: 'Niger-Congo', scope: 'I', type_of: 'L', iso_639_1: '', iso_639_2b: '', iso_639_3: 'aaa' },
{ name: 'Alumu-Tesu ', native: '', family: 'Niger-Congo', scope: 'I', type_of: 'L', iso_639_1: '', iso_639_2b: '', iso_639_3: 'aab' },
{ name: 'Ari', native: '', family: 'Trans-New Guinea', scope: 'I', type_of: 'L', iso_639_1: '', iso_639_2b: '', iso_639_3: 'aac' },
{ name: 'Amal', native: '', family: 'Sepik', scope: 'I', type_of: 'L', iso_639_1: '', iso_639_2b: '', iso_639_3: 'aad' },
{ name: '', native: '', family: '', scope: '', type_of: '', iso_639_1: '', iso_639_2b: '', iso_639_3: '' },
{ name: '', native: '', family: '', scope: '', type_of: '', iso_639_1: '', iso_639_2b: '', iso_639_3: '' },
{ name: '', native: '', family: '', scope: '', type_of: '', iso_639_1: '', iso_639_2b: '', iso_639_3: '' },
{ name: '', native: '', family: '', scope: '', type_of: '', iso_639_1: '', iso_639_2b: '', iso_639_3: '' },
].each do |l|
Language.create(name: l[:name], native: l[:native], family: l[:family], scope: l[:scope], type_of: l[:type_of], iso_639_1: l[:iso_639_1], iso_639_2b: l[:iso_639_2b], iso_639_3: l[:iso_639_3])
end