Re: [Rails-core] Generating ActiveRecord model table name to include namespace

2015-02-03 Thread Matthew Dunbar
Suggesting that we can auto generate the prefix based on the module name, rather than setting it with the existing method. Then eventually this feels like a sensible default to me. On Sunday, February 1, 2015 at 7:39:58 AM UTC-5, Carlos Antonio da Silva wrote: > > Not sure I get what's the actu

Re: [Rails-core] Generating ActiveRecord model table name to include namespace

2015-02-03 Thread Carlos Antonio da Silva
The first suggestion, as far as I understood, was related to something like inherits_table_prefix_from_*namespace, *which seems pretty much the same as setting the table name prefix. In any case, I've seen many many cases where people organize their models in namespaces, but the tables might not h

Re: [Rails-core] Generating ActiveRecord model table name to include namespace

2015-02-03 Thread Matt Jones
This will be a pretty rough default for some DBs that have short identifier maximums (Oracle is *30* characters). We’d also need to be explicit about what happens with models that descend from namespaced classes (from an engine, for instance). IIRC, current behavior derives the table name for s