Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 rails db:seed command (or created alongside the database with db:setup).
- #
- # Examples:
- #
- # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
- # Character.create(name: 'Luke', movie: movies.first)
- first_user = User.create!(email: "jorge@test.com", password: "password", password_confirmation: "password", role: "admin")
- first_professor = Professor.create!(email: "prof1@test.com", enrollment: "L01282893", department: 1, name: "Profesor 1")
- 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)
- first_user.project = first_project
Add Comment
Please, Sign In to add comment