rake load_fixtures failes on XP creating notes
Installing on Windows XP, the step:
rake load_fixtures
fails with:
Mysql::Error: #HY000Field 'project_id' doesn't have a default value: INSERT INTO
notes (`id`, `user_id`) VALUES (1, 1)
Turns out /pathto/tracks/text/fixtures/notes.yml needs to specify project_id.
Adding project_id: 1 after the two user_id: 1 lines fixes the problem.
rake load_fixtures
fails with:
Mysql::Error: #HY000Field 'project_id' doesn't have a default value: INSERT INTO
notes (`id`, `user_id`) VALUES (1, 1)
Turns out /pathto/tracks/text/fixtures/notes.yml needs to specify project_id.
Adding project_id: 1 after the two user_id: 1 lines fixes the problem.
Leave a comment