I'm a beginner in Ruby on Rails.
I need to build a web interface over an already-existing PostgreSQL database.
Thus, when I create models, I don't use migration to create tables.
However, I need to name the models in concordance to Rails rules, that is model name (eg. 'provider') is the singular of table name (eg. 'providers'), otherwise the ORM does not work.
Questions:
Is there a way to force Rails to link a model and a table if the names are quite different? (eg. model='people_list', table='customers')
How to know quickly if model<=>table mapping has proceeded correctly?
I need to build a web interface over an already-existing PostgreSQL database.
Thus, when I create models, I don't use migration to create tables.
However, I need to name the models in concordance to Rails rules, that is model name (eg. 'provider') is the singular of table name (eg. 'providers'), otherwise the ORM does not work.
Questions:
Is there a way to force Rails to link a model and a table if the names are quite different? (eg. model='people_list', table='customers')
How to know quickly if model<=>table mapping has proceeded correctly?