mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-17 17:01:37 -04:00
Can now seed via rake db:seed
Only using fixtures for seeding, using factories for testing. -For some reason, module fixtures won't auto create dates, must include updated_at and created_at dates in fixture.
This commit is contained in:
+10
@@ -1,15 +1,25 @@
|
||||
acquired:
|
||||
id: 1
|
||||
action: ACQUIRED
|
||||
created_at: <%= Time.now %>
|
||||
updated_at: <%= Time.now %>
|
||||
scrapped:
|
||||
id: 2
|
||||
action: SCRAPPED
|
||||
created_at: <%= Time.now %>
|
||||
updated_at: <%= Time.now %>
|
||||
worked:
|
||||
id: 3
|
||||
action: WORKED
|
||||
created_at: <%= Time.now %>
|
||||
updated_at: <%= Time.now %>
|
||||
completed:
|
||||
id: 4
|
||||
action: COMPLETED
|
||||
created_at: <%= Time.now %>
|
||||
updated_at: <%= Time.now %>
|
||||
sold:
|
||||
id: 5
|
||||
action: SOLD
|
||||
created_at: <%= Time.now %>
|
||||
updated_at: <%= Time.now %>
|
||||
|
||||
Reference in New Issue
Block a user