# 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: 'Emanuel', city: cities.first) Survey.create!(title: 'Mon super sondage des iiens', description: 'mon sondage est trop cool, je veux récupérer des informations sur vous ;)', creator_uid: 'masson2018', promo2018: true) Survey.create!(title: 'Veux tu être mon ami ?', description: 'please :(', creator_uid: 'tazio2018', promo2018: true) Survey.create!(title: 'Proposition de barbecue', description: 'sondage pour le barbecue du bde', creator_uid: 'bde', promo2018: true) q = Question.create!(text: 'c koi ton 06 ?') q.survey = Survey.first q.save q = Question.create!(text: 'c koi ton pseudo ?') q.survey = Survey.first q.save q = Question.create!(text: 'tabite ou ?') q.survey = Survey.first q.save q = Answer.create!(text: '0906050605', uid: 'tazio2018') q.question = Question.first q.save q = Answer.create!(text: '0605080905', uid: 'wang2018') q.question = Question.first q.save q = Answer.create!(text: 'elTata', uid: 'tazio2018') q.question = Question.find(2) q.save q = Answer.create!(text: 'oceane', uid: 'wang2018') q.question = Question.find(2) q.save q = Answer.create!(text: 'illkirch', uid: 'tazio2018') q.question = Question.find(3) q.save q = Answer.create!(text: 'illkirch', uid: 'wang2018') q.question = Question.find(3) q.save q = Question.create!(text: 'tabite ou ?') q.survey = Survey.find(2) q.save q = Answer.create!(text: '0604050608', uid: 'masson2018') q.question = Question.find(4) q.save q = Question.create!(text: 'tabite ou ?') q.survey = Survey.find(3) q.save q = Answer.create!(text: '0604050608', uid: 'masson2018') q.question = Question.find(5) q.save