Sha256: 80b25f28c82dc093306be719cd1f116ccdab614bac7c43e6c1bdf1ff616d4cea

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

puts 'Seeding Database...'
[
  { en: 'Art'},
  { en: 'Visual Arts'},
  { en: 'Circus' },
  { en: 'Community' },
  { en: 'Humor' },
  { en: 'Comicbooks' },
  { en: 'Dance' },
  { en: 'Design' },
  { en: 'Events' },
  { en: 'Fashion' },
  { en: 'Gastronomy' },
  { en: 'Film & Video' },
  { en: 'Games' },
  { en: 'Journalism' },
  { en: 'Music' },
  { en: 'Photography' },
  { en: 'Science & Technology' },
  { en: 'Theatre' },
  { en: 'Sport' },
  { en: 'Web' },
  { en: 'Carnival' },
  { en: 'Architecture & Urbanism' },
  { en: 'Literature' },
  { en: 'Mobility & Transportation' },
  { en: 'Environment' },
  { en: 'Social Business' },
  { en: 'Education' },
  { en: 'Fiction Films' },
  { en: 'Documentary Films' },
  { en: 'Experimental Films' },
  { en: 'Health'}
].each do |name|
   category = Hatchy::Category.find_or_initialize_by(name: name[:en ])
   category.save
 end

bank = Hatchy::Bank.find_or_initialize_by(name:"Fake Bank", code:"69")
bank.save

bank2 = Hatchy::Bank.find_or_initialize_by(name:"Fake Second Bank", code:"96")
bank2.save

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre db/seed.rb
hatchy-0.0.7.pre db/seed.rb
hatchy-0.0.6.pre db/seed.rb
hatchy-0.0.5.pre db/seed.rb