Reputation: 23
When using 'db_table' to explicitly set the database table name, how can you preserve the naming convention of "app_table_name"? The app name is removed.
Upvotes: 1
Views: 603
Reputation: 74795
As far as I know the db_table
option will get precedence over the existing convention of app name + model name. If you set it explicitly you will have to prefix the app name yourself.
Upvotes: 2
Reputation: 799420
You can't. Add the app to the table name yourself.
Upvotes: 1