How to map irregular database tables with rails models
Rails specifies standard conventions while creating models, controllers, migrations ( database tables ). Conventions for creating database tables 1. Table name should be plural 2. id field must be primary_key for table. 3. foreign_key must be like <model_name>_id i.e. post_id, site_id Conventions for creating models & Controllers1. Model name must be singular and controller name …
How to map irregular database tables with rails models Read More »