search for: disable_referential_integr

Displaying 6 results from an estimated 6 matches for "disable_referential_integr".

2013 Jun 14
0
Support for deferrable constraints in PostgreSQLAdapter#disable_referential_integrity
I recently submitted a pull-request (https://github.com/rails/rails/pull/10939) to address a bug in PostgreSQLAdapter#disable_referential_integrity related to how the existing code behaves in a transaction when the PostgreSQL user account lacks superuser privileges on the PostgreSQL instance. While this permits the code to function without crashing, it doesn''t actually make #disable_referential_integrity work unless the user has s...
2012 Dec 12
1
#8498 postgres_adapter fix for disable_referential_integrity
...9.3-p194@my_application/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `execute'' from /.../jenkins/.rvm/gems/ruby-1.9.3-p194@my_application/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:528:in `ensure in disable_referential_integrity'' from /.../jenkins/.rvm/gems/ruby-1.9.3-p194@my_application/gems/activerecord-3.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:528:in `disable_referential_integrity'' from /.../jenkins/.rvm/gems/ruby-1.9.3-p194@my_application/gems/database_cleaner-0.9.1/l...
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...`create_fixtures'' ./test/../lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'' ./test/../lib/active_record/fixtures.rb:517:in `create_fixtures'' ./test/../lib/active_record/connection_adapters/postgresql_adapter.rb:374:in `disable_referential_integrity'' ./test/../lib/active_record/fixtures.rb:508:in `create_fixtures'' ./test/../lib/active_record/base.rb:1207:in `silence'' ./test/../lib/active_record/fixtures.rb:507:in `create_fixtures'' ./test/../lib/active_record/fixtures.rb:950:in `load_fixtur...
2011 Jul 25
4
Rails 3 test database issues
...:139:in `transaction'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/fix tures.rb:524:in `block (2 levels) in create_fixtures'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/con nection_adapters/mysql_adapter.rb:228:in `disable_referential_integrity'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.3/lib/ active_record/fix tures.rb:515:in `block in create_fixtures'' C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/ active_support/b enchmarkable.rb:55:in `silence'' C:/Ruby192/lib/ruby/gems/...
2009 Feb 02
2
looking for help with NoMethodError: undefined method `key?' for #<String:0x4795488>
...nts.rb: 66:in `transaction'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/fixtures.rb:518:in `create_fixtures'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/connection_adapters/mysql_adapter.rb:254:in `disable_referential_integrity'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/fixtures.rb:509:in `create_fixtures'' C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/ active_record/base.rb:1398:in `silence'' C:/InstantRails/ruby/lib/ruby...
2011 Jul 11
36
has_many and belongs_to association
Hi , I want to test the one below but I got the problem belongs_to :name, :class_name => "Phrase", :foreign_key => "name" in my test context "test"do should have_many :phrases end in language.rb belongs_to :name, :class_name => "Phrase", :foreign_key => "name" error is 1) Failure: test: check has_many and belongs_to