search for: active_record

Displaying 20 results from an estimated 1221 matches for "active_record".

2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...umn \"taggings_count\" does not exist\n: UPDATE \"posts\" SET \"taggings_count\" = \"taggings_count\" + 1 WHERE (\"id\" = 2) AND ( (\"posts\".\"type\" = ''SpecialPost'' ) ) "> ---Backtrace--- ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:156:in `log'' ./test/../lib/active_record/connection_adapters/postgresql_adapter.rb:407:in `execute_without_counting'' ./test/abstract_unit.rb:71:in `execute'' ./test/../lib/active_record/connection_adapters/abstract/database_statement...
2005 Nov 26
4
activerecord rake test_mysql
...seconds. 1) Error: test_adding_macro_callbacks(AssociationCallbacksTest): ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field ''type'' doesn''t have a default value: INSERT INTO projects (`name`, `id`) VALUES (''Active Record'', 1) ./test/../lib/active_record/connection_adapters/abstract_adapter.rb:78:in `log'' ./test/../lib/active_record/connection_adapters/mysql_adapter.rb:181:in `execute'' ./test/../lib/active_record/fixtures.rb:284:in `insert_fixtures'' ./test/../lib/active_record/fixtures.rb:283:in `each''...
2006 Nov 24
7
Anyone know whats going on with PostgreSQL async_exec errors?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anyone know what''s going on with ActiveRecord Edge and 1.2RC1 unit tests. I get 13 failures from the "async_exec" method call. ie: test_callback_rollback_in_save(ConcurrentTransactionTest): ActiveRecord::StatementInvalid: NoMethodError: undefined method `async_exec'' for #<PGconn:0xb75a8754>: SET
2007 May 31
0
Rails AR/SQLServer Unit Test: [6912] failed (but getting better)
...----------- r6912 | bitsweat | 2007-05-31 10:15:56 -0700 (Thu, 31 May 2007) | 1 line Fix an edge case with find with a list of ids, limit, and offset. Closes #8437. ------------------------------------------------------------------------ U activerecord\test\finder_test.rb U activerecord\lib\active_record\base.rb Updated to revision 6912. 1) Error: test_saves_both_date_and_time(DateTimeTest): ArgumentError: argument out of range ./test/../lib/active_record/connection_adapters/sqlserver_adapter.rb:106:in `mktime'' ./test/../lib/active_record/connection_adapters/sqlserver_adapter.rb...
2008 Mar 07
3
Boolean circles..
...t;> m = c.members.find(:first, :conditions => "is_active = true") ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: true: SELECT * FROM members WHERE (members.club_id = 1 AND (is_active = true)) LIMIT 1 from /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract_adapter.rb:150:in `log'' from /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in `execute'' from /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/sqlite_adap...
2005 Dec 01
0
symlink and 0.14.3
...========= Mysql::Error in Admin/manufacturers#index Access denied for user: ''@localhost'' (Using password: NO) RAILS_ROOT: /home/httpd/htdocs/ujautoszalon2/../config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:510:in `read'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/vendor/mysql.rb:152:in `real_connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.0.2969/lib/active_record/connection_adapters/mysql_adapter.rb:41:in `mysql_connection''...
2006 Apr 04
6
Oracle Problem. Maybe driver
...y app to our solaris server everything is fine until i try updating/inserting something into the DB. This is the error message : wrong number of arguments (1 for 0) RAILS_ROOT: config/.. Application Trace | Framework Trace | Full Trace /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:in `attributes_with_quotes_pre_oracle'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/oracle_adapter.rb:53:in `attributes_with_quotes'' /opt/tools/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/...
2008 Dec 20
9
Upgrade to Rails 2 - problem with "save" (MySQL boolean issue?)
I have been working through an upgrade of my 1.2.6 application to 2.2.2. I am almost there but I have hit a problem with ActiveRecord. Before the upgrade, the following code was working fine. def create_root(administrator) root = create_root_collection(self.pingee_name, administrator,
2006 Aug 15
0
SystemStackError: stack level too deep
...stack level too deep from ./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb:100:in `read_inheritable_attribute'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:354:in `callbacks_for'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:330:in `callback'' from ./script/../config/../config/../vendor/rails/activerecord/lib/active_record/callbacks.rb:296:in `valid?'...
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
...t to create a Document, it works fine, but if I attempt to use one of the subclasses, I get the error: can''t dump anonymous class Class With an Application Trace of: C:/Ruby/lib/ruby/1.8/yaml/rubytypes.rb:6:in `to_yaml'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connect ion_adapters/abstract/quoting.rb:22:in `quote'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connect ion_adapters/mysql_adapter.rb:123:in `quote'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/base.rb :1305:in `quote_bound_v...
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
...ils.org/changeset/7769 ------------------------------------------------------------------------ r7769 | bitsweat | 2007-10-06 22:29:37 -0700 (Sat, 06 Oct 2007) | 1 line MySQL: speedup date/time parsing. ------------------------------------------------------------------------ U activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb U activerecord/lib/active_record/connection_adapters/mysql_adapter.rb U activerecord/CHANGELOG Updated to revision 7769. 1) Failure: test_preserving_date_objects(BasicsTest) [./test/base_test.rb:387:in `test_preserving_date_objects'...
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
...t something like this: class Position < ActiveRecord::Base end class CartItem < Position validates_uniqueness_of :product_id end When I try to save CartItem I get this error: ArgumentError: wrong number of arguments (1 for 2) from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in `exists?'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in `validates_uniqueness_of'' from /home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:2148:in `with_scope'' from /home/jo...
2006 Apr 30
3
MySQL connection problems on Dreamhost
...ection to MySQL server during query): Any idea why this happens? It''s rather intermittent and random, but I get this a few times a week. I''ve pasted a large section of the call stack below in case it helps. Thanks! Jeff /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:316:in `real_connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:316:in `connect'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_...
2009 Jul 20
2
Hitting unknown error with "can't dup NilClass"
...I hitting a refresh, it hits following problem "can''t dup NilClass". It is repeats the same for everytime i restart mongrel, working for the first time and failed for the rest. I append the application error log as below: /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2189:in `dup'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2189:in `scoped_methods'' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ base.rb:2193:in `current_scoped_methods'' /opt/local/lib/ruby/gems/1.8/ge...
2006 Aug 08
1
File upload into Mysql (using lighttpd) problem
...aff2a7f83ad76ffc47d7f3d7fca9d0fbe2df1fdcbbfdeed0f0783f4ff0b87f89fdbf8ef6d7f79f69fe778be9d1ab9b5f8f6fff008d53e75fe5ebc38fcbf9f54a26ae2694f415afede1f3fe5d7fffd9'', ''f'', ''350zchromesilver.jpg'')): /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/connection_adapters/abstract_adapter.rb:120:in `log'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/connection_adapters/mysql_adapter.rb:185:in `execute'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.1/lib/active_record/connection_adapters/...
2006 May 04
2
validates* give me problems
...my browser when creating a new categoria item: NoMethodError in Categorias#create undefined method `categoria'' for #<Categoria:0x40a606cc> RAILS_ROOT: /var/www/audio/public/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1786:in `method_missing'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/validations.rb:300:in `validates_each'' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/validations.rb:299:in `validates_each'' #{RAILS_ROOT}/vendor/rails/activerecord/li...
2007 Oct 30
1
Merb - Losing connection to MySQL
...#39;image/jpeg'', NULL, 70907, NULL, ''2007-10-30 00:25:36'', ''-'', NULL, 43, ''DSC05209.JPG'', 525, 1, NULL, ''2007-10-30 00:25:36'', 700) - (ActiveRecord::StatementInvalid) /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.5/lib/active_record/connection_adapters/mysql_adapter.rb:253:i...
2009 Jun 04
1
wrong number of arguments (1 for 0)
...ve(validate) end and it blows up on the force ? record.save! : record.save(validate) line. Here is the stack trace: wrong number of arguments (1 for 0) RAILS_ROOT: /var/www/rails/dropzone Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/has_many_association.rb:61:in `save'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/has_many_association.rb:61:in `insert_record'' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ associations/association_proxy.rb:145:i...
2011 Jul 25
4
Rails 3 test database issues
...39;: INSERT INTO `conversions` (`file_name`, `conversion_dir_id`, ` created_at`, `updated_at`, `id`) VALUES (''MyString'', 1, ''2011-07-25 13:32:52'', '' 2011-07-25 13:32:52'', 980190962) C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/con nection_adapters/abstract_adapter.rb:202:in `rescue in log'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/con nection_adapters/abstract_adapter.rb:194:in `log'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/con nec...
2006 Apr 06
7
[Fwd: Rails AR/Oracle Unit Test: [4185] failed]
...---------------------- r4185 | rick | 2006-04-06 08:23:56 -0700 (Thu, 06 Apr 2006) | 1 line Enable Limit/Offset in Calculations (closes #4558) [lmarlow@yahoo.com] ------------------------------------------------------------------------ U activerecord/test/calculations_test.rb U activerecord/lib/active_record/calculations.rb U activerecord/CHANGELOG Updated to revision 4185. 1) Error: test_should_limit_calculation(CalculationsTest): TypeError: can''t convert String into Array ./test/../lib/active_record/connection_adapters/oracle_adapter.rb:310:in `replace'' ./test/../lib/activ...