I'm using the seeds.rb to create some user records:
user = User.new
user.username = Faker::Name.first_name
user.email = user.username+"@example.com"
This works just fine and the users have been created after I ran
db:seeds but what's not working is:
comment = Comment.new
comment.text = "some text"
comment.user = self
There's not one single comment in the database but when I create a user
using the console the comment is created after I save the user.
Anyone knows what's wrong here?