Sha256: 99c0fe3bc531efa32de2a51f30c65f15a70aa1b4417e56d3e2a3a97b21d91e41
Contents?: true
Size: 664 Bytes
Versions: 1
Compression:
Stored size: 664 Bytes
Contents
# Clear all entries User.delete_all Post.delete_all Comment.delete_all ChooChoo::Activity.delete_all u1 = User.create(username: 'UserOne') u2 = User.create(username: 'UserTwo') p1 = Post.create(title: 'This is the first post', body: 'This is some content', user: u1) p2 = Post.create(title: 'This is the second post', body: 'This is some other content', user: u2) Comment.create(user: u2, post: p1, body: 'No comment') Comment.create(user: u1, post: p1, body: 'Yes comment') Comment.create(user: u2, post: p2, body: 'A comment') Comment.create(user: u1, post: p2, body: 'Another comment') Comment.create(user: u1, post: p2, body: 'One more for good measure')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
choo_choo-0.0.1 | spec/dummy/db/seeds.rb |