Guest User

Untitled

a guest
Oct 16th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. # This file should contain all the record creation needed to seed the database with its default values.
  2. # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
  3. #
  4. # Examples:
  5. #
  6. # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
  7. # Character.create(name: 'Luke', movie: movies.first)
  8.  
  9. first_user = User.create!(email: "jorge@test.com", password: "password", password_confirmation: "password", role: "admin")
  10. first_professor = Professor.create!(email: "prof1@test.com", enrollment: "L01282893", department: 1, name: "Profesor 1")
  11. first_project = Project.create!(name: "Name", field: 1, kind: 1, abstract: "asd", video_url: "asd.com", client: 1, status: 0, professor_id: first_professor.id, user_id: first_user.id, user: first_user)
  12. first_user.project = first_project
Add Comment
Please, Sign In to add comment