Results 1 to 1 of 1
Jul 23, 2006, 22:56 #1
- Join Date
- Jul 2004
- 0 Post(s)
- 0 Thread(s)
Figuring out the table name before hand
I can't imagine I'm the only one having trick having trouble with the pluralization of the tables. I always get confused at some point so here's my trick (I know I could just disable the pluralization but that would be no fun )
I start by creating the model using the script/generate model command and then instead of going to create the migration script right away I open the script/console.
From the console then I use the table_name method on the model class I just created. This tells me what table name the model will use.
You got any other trick like that?