Add this gem and you won't regret it.
bundle add cool_rails
Include the CoolRails module on your model
class Post < ApplicationRecord
include CoolRails
end# Initialize record
Post.π€°(title: "The start of something big")
# Create new record
Post.πΆ(title: "This is so much cooler")
# Count records
Post.π’
# Find record by id
@post = Post.π(id: params[:id])
# Query record
@post = Post.π("title = ?", "This is so much cooler")
# Update record
@post.π οΈ(title: "Try out a new title ouu")
# Destroy record
@post.π£