vidhiya-saagar / spg2

🌕 Suraj Prakash Granth - Rails 7 Admin Application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create `Tuk` Models

dsomel21 opened this issue · comments

Description

Note: Refer to #3 for more detailed information

We now have the Book, Chapter, Chhand, and Pauri and PauriTranslation models and their respective tables.

The next thing we need is the Tuk model, which is going to hold the contents of the Suraj Prakash poetry! This will be the heaviest and LARGEST table. Probably over 100k rows!

Screen Shot 2023-04-07 at 7 05 19 AM

Where Should We Add the translation Stuff?!

Refer to how @anhadpreetsingh did it in #22.

Summary: He added another model that will hold translation stuff. This way, when a tuk doesn't have translations, instead of having thousands of records with :en_translation => nil in the tuks table, we create a tuk_translations record WHEN we need one.

Are we okay to close this issue? @dsomel21