I am not familiar with rails so much and I want to code a plugin that asks user his job and fill the job’s user_custom_fields(already created manually) in the database.
Because I’m familiar with PHP, I add new rows to database directly by SQL Queries (Like what we do in PHP) But this won’t increase the sequence table and this may cause some damages to site.
I have tried to increase the sequence table but postgres didn’t allow me to change data in
I have two solution:
1-get the permission to edit rows in
_seq tables and change them with SQL Query.
2-edit or add the database using rails methods.(that increase the
_seq tables automatically)
Surely, the second solution is the best but this solution is good for who are familiar with rails and MVC and for me and as a temporary solution(to avoid big harms) the first solution is good until I learn how to code with Rails.
So how Can I solve this problem? What is your Idea?