Skip to content

Instantly share code, notes, and snippets.

@rokhimin
Created May 20, 2025 18:45
Show Gist options
  • Save rokhimin/b99aa5c9d2d779a52ae4e2fc9b132e99 to your computer and use it in GitHub Desktop.
Save rokhimin/b99aa5c9d2d779a52ae4e2fc9b132e99 to your computer and use it in GitHub Desktop.
increase chapter in kitsumanga
# rails console
one_piece = Manga.find_by(title: "One Piece")
(1..1129).each do |n|
Chapter.create!(
manga_id: one_piece.id,
chapter_number: n,
images: "[]"
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment