MaxLap/activerecord_where_assoc

View on GitHub
examples/some_data.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

user1 = User.create!(username: "maxlap")

my_post = user1.posts.create!(title: "First post", content: "This is new")
my_post.comments.create!(author: user1, content: "Commenting on my own post!")