search for: table_prefix

Displaying 5 results from an estimated 5 matches for "table_prefix".

2006 Aug 02
5
Fun with ez_where
...ef list @filter = Caboose::EZ::Condition.new :table do attribute <=> params[:filter] if params[:filter] end end But this doesn''t work. It doesn''t throw an error, but it adds a clause to the @filter like this... - !ruby/object:Caboose::EZ::Clause name: params table_prefix: table. test: :[] value: :filter and otherwise doesn''t behave as you might expect. Sooo... if want to use the ez_where plugin with conditions, be careful. There''s probably a way around this, hopefully Ezra has some nifty trick for making this work as expected. _Kevin www...
2007 Jan 23
11
dynamic tablenames
Hi List! May I tap into your combined common sense ? I have a legacy logging app that needs to be modernized. At the moment, Data is going to be stored in 5 tables, one table is going to contain more than 200 million and 2 others about 60 million rows. Mysql will be used, unless someone sees a major advantage in using something else (at the moment data is stored in a raw positioned file format,
2006 Aug 11
0
habtm in a standalone ruby script broken?
...downtime.rb: class HostDowntime < ActiveRecord::Base has_and_belongs_to_many :host_scheduled_downtimes ... And in .../app/models/host_scheduled_downtime.rb: class HostScheduledDowntime < ActiveRecord::Base has_and_belongs_to_many :host_downtimes ... this works fine, until i introduce a table_prefix with ActiveRecord::Base.table_name_prefix = "devel_" >From the database log i see that each tablename is correctly prefixed with _devel, execept the join_table host_downtimes_host_scheduled_downtimes I included a printf stament in Associations::join_table_name and saw that table_na...
2013 Mar 07
0
custom table_name for table users with devise
...more weird, im also using activeadmin, and when I browse users list, I have an error : Mysql2::Error: Unknown column ''franceusers.id'' in ''order clause'': SELECT `users`.* FROM `users` ORDER BY `franceusers`.`id` desc LIMIT 30 OFFSET 0 it seems it can find table_prefix for field but not for FROM. do I do anything bad ? is there another way to change users table name ? thanks merci -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from i...
2011 May 29
4
Model load time
Hi, I''m getting a little confused how Rails handles loading models. I''m on development mode, using Rails 3.1.0.rc1 on ruby 1.8.7 My application models are: Curso Legislacao Usuario And I have another model that is loaded from a gem Im trying to build: Cidade My gem is actually a simple engine: require ''active_record'' require