Skip to content

Instantly share code, notes, and snippets.

@Znow
Created June 7, 2011 19:46
Show Gist options
  • Select an option

  • Save Znow/1012984 to your computer and use it in GitHub Desktop.

Select an option

Save Znow/1012984 to your computer and use it in GitHub Desktop.
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
# Mayor.create(:name => 'Daley', :city => cities.first)
Employee.create([
{
:name => 'Lars Fetterlein',
:title => 'Managing Partner',
:email => '[email protected]',
:phone => '+45 2216 4081',
:image => 'lars_fetterlein.jpg'
},
{
:name => 'Tobias Hvilsted',
:title => 'IT & Administration',
:email => '[email protected]',
:phone => '+45 4224 6134',
:image => 'tobias_hvilsted.jpg'
},
{
:name => 'Linda Kops',
:title => 'Sekretær',
:email => '[email protected]',
:phone => '+45 3930 6080',
:image => 'lind_kops.jpg'
},
{
:name => 'Anette Vinum',
:title => 'Receptionist',
:email => '[email protected]',
:phone => '+45 3930 6080',
:image => 'anette.jpg'
},
{
:name => 'Frederik Foged Dreyer-Nielsen',
:title => 'Bestyrelsesmedlem i Advice Invest',
:email => '[email protected]',
:phone => '+45 2618 9817',
:image => 'frederik.jpg'
},
{
:name => 'Jesper Thaning',
:title => 'Bestyrelsesmedlem i Advice Invest',
:email => '[email protected]',
:phone => '+45 4013 7654',
:image => 'jesper_thaning.jpg'
}
])
n = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
News.create([
n * 5
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment