Displaying 20 results from an estimated 7000 matches similar to: "Support for deferrable constraints in PostgreSQLAdapter#disable_referential_integrity"
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
The build failed.
CHANGES
-------
Revision 8649 committed by gbuesing on 2008-01-16 20:07:10
Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing compatibility with Time. Closes #10002
M /trunk/activesupport/CHANGELOG
M /trunk/activesupport/lib/active_support/core_ext/date_time/calculations.rb
M /trunk/activesupport/test/core_ext/date_time_ext_test.rb
TEST FAILURES AND
2012 Dec 12
1
#8498 postgres_adapter fix for disable_referential_integrity
Please review this patch for postgres adapter''s referential_integrity.rb in
Rails master and 3.2.9 and let me know what you think. We are using it via
an initializer (monkey patching the adapter directly vs. in module):
https://github.com/rails/rails/pull/8498
Fixes this issue also seen by others in Foreigner:
https://github.com/matthuhiggins/foreigner/issues/61
Problem that it
2010 Jun 30
0
I have problem ....PostgreSQLAdapter::PGconn
I have a problem when i am creating a rails project using postgresql...
uninitialized constant
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::PGconn
I have already installed gem postgres-pr. but not start..
I using rails version 2.3.5
Ruby 1.8.7
PostgresSQL 1.10.2.
Please help me thanks.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to
2006 May 29
2
foreign keys and referential integrity
Sans rails my normal approach to handling this would be to enforce it in
the database and when a database operation failed I''d try to validate
the model to produce an error message. It''s always served me pretty
well.
Rails expects you to validate before commiting but of course this does
nothing to guarantee referential integrity. It''s perfectly possible for
one
2006 Mar 15
3
softirq bound to vcpus
In "Understanding the Linux Kernel" 3rd edition, section 4.7 "Softirqs and
Tasklets" it states:
"Activation and execution [of defferable functions] are bound together: a
deferrable function that has been activated by a given CPU must be executed on
the same CPU. There is no self-evident reason suggesting that this rule is
beneficial for system performance. Binding the
2006 Jan 11
0
Easy Question, I Think
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2009 Oct 14
2
How to configure every (postgresql) db connection?
I would like to set some db session variables specific to my
application on the database connection that rails uses. They can be
set by issuing an SQL command like "SET statement_timeout = 1000"
once - it will be in effect for every subsequent SQL statement that
uses this connection.
So I tried to put the following into an initializer:
ActiveRecord::Base.connection.execute("SET
2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2006 Jan 13
1
How to disconnect to a database????
Hi,
We have experienced some problems with
ActiveRecord::Base class of Ruby-Rails. We are
building a web-application based on the Ruby-rails
framework and the web-application needs to access to
difference databases, so we do not pre-define our
database accesses in the database.yml file. In fact,
we are using the
ActiveRecord::Base.establish_connection() to connect
to our database, the function
2008 Sep 26
0
self-referential tags, has_many_polymorphs
Hi,
I''m looking to add tagging to an application, and I would like to allow
self-referential tags, so that I can tag my tags. With the goal of
generating a flexible tag hierarchy.
After some googling it looks like acts_as_taggable is not the best piece
of code, and I''m hoping to use the has_many_polymorphs plugin from
http://github.com/fauna/has_many_polymorphs/tree/master.
2006 Aug 08
2
Problem with plurals, migrations?
Hi,
Ruby 1.8.4
Rails 1.1.4
Windows XP Pro
I''m hitting an issue with migrations that I suspect relates to
pluralization. Here''s the migration:
class Hardware < ActiveRecord::Migration
def self.up
create_table :hardware do |h|
h.column :vendor, :string, :limit => 32
h.column :model, :string, :limit => 32
end
2006 Jan 19
1
[Newbie] undefined method `useremail'' error
Hi all,
I''m just starting out... the solution to this must be really trivial but
can''t figure out what''s wrong. I''m using Webrick + Rails 1.0
The error is:
undefined method `useremail'' error
What am I missing?
Thanks,
Lorenzo
class User < ActiveRecord::Base
set_table_name "\"tblUser\""
set_primary_key
2006 Aug 02
2
Self-Referential has_many :through
Hello all.
I am trying to create a self-referential has_many :through. I used the
following site as a guide
http://blog.hasmanythrough.com/articles/2006/04/21/self-referential-through
but it still doesn''t appear to be working. I have two models. Person and
Relationship. A person has many contacts (Which is another person)
through relationships
class Person < ActiveRecord::Base
2006 Feb 25
0
self referential habtm using join tables
All:
I have been working on making a self-referential habtm relationship
that uses a join model because I want to store info about the
relationship. I have been using two sections from Chad Fowler''s "Rails
Recipes" as a guide, "Self-referential Many-to-Many Relationships" and
"Many to Many Relationships Where the Relationship Itself has Data".
So far I have
2006 Feb 27
0
self-referential many-to-many using a join model
Hello!
I have been working on making a self-referential habtm relationship
that uses a join model because I want to store info about the
relationship. I have been using two sections from Chad Fowler''s "Rails
Recipes" as a guide, "Self-referential Many-to-Many Relationships" and
"Many to Many Relationships Where the Relationship Itself has Data".
So far I
2006 Nov 04
0
ActiveRecord
I''m running into a bit of a ideological and functional problem with
ActiveRecord and would like to find out if some of these concerns are
valid. Hopefully someone here already knows the answer...
The concerns are that ActiveRecord has a lot of activity involving data
validation (validates_uniqueness_of, validates_associated) and model
definition (belongs_to, has_many, has_one).
2006 Nov 04
0
Active Record and consistency
I''m running into a bit of a ideological and functional problem with
ActiveRecord and would like to find out if some of these concerns are
valid. Hopefully someone here already knows the answer...
The concerns are that ActiveRecord has a lot of activity involving data
validation (validates_uniqueness_of, validates_associated) and model
definition (belongs_to, has_many, has_one).
2006 Oct 19
0
Migrations, superusers, security and least privileges
The one thing I don''t like about migrations is the security, and I''d like to
know if anyone is interested in working with me to improve it (or knows an
existing way to accomplish the same thing). Here''s the scenario:
- I always create specific database users that only have CRUD
priveleges, and run my web apps with these users
- I need to log in with a
2006 Aug 13
10
does rails enforce referential integrity???
Hi,
Is rails supposed to support referential integrity? That is rails
either support to be able to ensure that when a new contact is created
this can only happen if a valid suberb is associated with it, and which
mechanisms of the below are supposed to do this?
(a) using DB foreign key constraints information as a basis?
(b) using the "has_one" line in the model file to enfore?
If
2008 Jan 29
1
std::runtime_error when calling EM::stop
When I call EM::stop from within a Deferrable callback, I''m getting
the following:
terminate called after throwing an instance of ''std::runtime_error''
what(): already initialized
Abort trap
Is there any way to trace this a little further?
-- Duane Johnson