Created
May 20, 2025 18:45
-
-
Save rokhimin/b99aa5c9d2d779a52ae4e2fc9b132e99 to your computer and use it in GitHub Desktop.
increase chapter in kitsumanga
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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