Displaying 6 results from an estimated 6 matches for "rails_sql_view".
Did you mean:
rails_sql_views
2006 Dec 29
2
Rails SQL Views 0.5.0 Released
Rails SQL Views 0.5.0 is now available from
http://rubyforge.org/frs/?group_id=2435&release_id=8685 and shortly as
a Gem (gem install rails_sql_views). More information on Rails SQL
Views can be found at
http://activewarehouse.rubyforge.org/rails_sql_views/
This release finally fixes the SchemaDumper issues, including the
necessary select statement for the view. It also introduces PostgreSQL
support, tested on both the native and pure ruby dri...
2008 Aug 28
2
Rails Migrations and database views
I have a DB2 schema with many ''views'' and table partitions defined in
it. As per our new project requirement we have to support multiple
databases (DB2,Oracle and MYSQL to be specific). The frontend
application is implemented using Ruby on Rails. I am interested in
exploring the possibility of using Rails Migrations to abstract out
the schema to a DB independent layer. I could
2011 Mar 22
2
Problems with SQLite3
...t; rake test
Loaded suite
/home/vlad/.rvm/gems/ruby-1.9.2-p136/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
E
Finished in 0.046598 seconds.
1) Error:
test_product_attributes_must_not_be_empty(ProductTest):
SystemStackError: stack level too deep
/home/vlad/.rvm/gems/ruby-1.9.2-p136/gems/rails_sql_views-0.8.0/lib/rails_sql_views/connection_adapters/abstract_adapter.rb:23
1 tests, 0 assertions, 0 failures, 1 errors, 0 skips
It doesn''t matter, what is in the test. Any test will fail, even if I
just write ''assert true'' there.
Those problems disappear if I change to ano...
2010 Oct 05
2
Is it possible to query on virtual attributes?
I have a Person model with attributes first_name and last_name.
I want to implement autocomplete search that looks that the entire
name. Hence I have a method:
def full_name
self.first_name + " " + self.last_name
end
Is it possible for me to query on full_name and have rails match the
first_name and last_name fields?
I currently receive this error when I try, because full_name
2007 Jan 26
2
ActiveRecord: Reading MySQL views
My production environment is actually Oracle, in which case if I say:
set_table_name "v_table"
It will treat it as a readonly table.
However, doing the same under MySQL throws an
ActiveRecord::StatementInvalid error, saying that the table db.view
doesn''t exist. Is there a way to get around this? I am using MySQL to
test some new code I am working on, and wouldn''t
2010 Oct 06
16
Dealing with an EAV database
I''ve inherited an EAV database and there''s really no option to remodel
it. Data is stored as key_name, key_value pairs
Trying to return a meaningful, unified recordset is far too complex to
be efficient.
I''ve decided to make use of the MySQL GROUP_CONCAT, and CONCAT_WS
functions to return a fast query result, with the consolidated fields
as one string.
The final data is