Table names

danlynn edited this page Jan 10, 2013 · 3 revisions

For default, Octopus will clean the table name of the model after each #using call. This is needed to ensure compatibility when your project uses different databases (like a shard using mysql and another using postgresql), and they have different quoted table names. if you are using only one adapter, Octopus will not touch in your table name.

To set a default table name, use octopus_set_table_name:

class Bacon < ActiveRecord::Base

Note that this method is no longer part of recent versions. Calling set_table_name() appears to work in my testing.