If I have a table named "AccountsPayableLedger" which is basically a listing of transactions where the owner of the Web Application has to make payments to suppliers/etc.
To setup the table (and the model, I'll need that, right?) I would run a command like this:
rails g model AccountsPayableLedger P_Id:integer VendorID:integer TransactionNumber:integer Invoice:integer TransactionDate:date TransactionType:text Amount:decimal Comment:text CheckNumber:integer
That will create a table named AccountsPayableLedgers, right? That would be bad news because I'd have to make a special exception for when I synchronize the tables. Is there a way (and is it a sound practice) to force the table name to be just plain old AccountsPayableLedger?

New Topic/Question
Reply




MultiQuote




|