Populating Tables with Data Using Migrations
Posted by g. | Filed under Ruby on Rails, Technology
I can think of very few Rails sites that don’t need some kind of data pre-populated in their tables. When you talk to a Rails developer, the first thing that comes to mind when talking about populating the db is fixtures. This is not what we’re talking about here. Fixtures populate your TEST database with [...]
Tags: data, database, migrations, populating, rails
Using Reserved Words in your Database Tables
Posted by g. | Filed under Ruby on Rails
I was banging my head against the wall the other day for several hours wondering why an extremely simple MyModel.find(:all) call was giving me the error: ArgumentError: wrong number of arguments (0 for 1).
There was absolutely nothing strange about the table, my controller, or model object. The next day it dawned on me, I thought [...]
Tags: database, MySQL, rails, reserved words, table