How to check record duplication before saving?

Oh, I should mention, ara, that the company I worked for charged
almost as much for support. It's actually in your neck of the woods
:slight_smile:

Todd

···

On Sat, Apr 12, 2008 at 9:55 PM, Todd Benson <caduceass@gmail.com> wrote:

On Sat, Apr 12, 2008 at 9:02 PM, ara.t.howard <ara.t.howard@gmail.com> wrote:
>
> On Apr 12, 2008, at 7:48 PM, Todd Benson wrote:
>
> > The "help" was paid about $1000/hr to set it up.
> >
>
> guess we have something to learn from them! :wink:

Yeah, it's funny. That may sound like an exaggeration, but after you
add up the flight cost and motel stay, it probably was more like
$1200/hr. The guy worked about 4 hours per day for a total of 3 or 4
days.

I meant "It's actually located in your neck of the woods.

Todd

···

On Sat, Apr 12, 2008 at 10:16 PM, Todd Benson <caduceass@gmail.com> wrote:

  It's actually in your neck of the woods

Is there some fascinating reason why the recent mails I've been
writing are homo-erotic? Hmm... the estrogen dose might be a little
high.

I was simply trying to say that...

The company I worked for was based in Boulder, CO, and that they had
some serious financial issues that was unfortunately laid on my
shoulders. The only way to solve it, IMHO, was to redesign the
schema, which, of course, was not an option. How does this apply to
Ruby? Well, I think if I knew Ruby then, I might have been able to
alter the schema of the db correctly.

BTW, if you need serious backup capability, check out
http://www.spectralogic.com. And no, that's not a shameless plug. I
assure you they will have nothing particularly good to say about me.

Todd

···

On Sat, Apr 12, 2008 at 10:16 PM, Todd Benson <caduceass@gmail.com> wrote:

Oh, I should mention, ara, that the company I worked for charged
almost as much for support. It's actually in your neck of the woods
:slight_smile:

Thank you everyone, I have found out the solution which is
"validates_uniqueness_of". The statement as below,

validates_uniqueness_of :A, :scope => :B

Frank

···

--
Posted via http://www.ruby-forum.com/.

cannot work - the concept itself is fatally flawed and can never be made to work using the current process

http://drawohara.com/post/18926188

you *MUST* put this constraint in the db unless you really don't care about it.

from rails-core on the subject

http://www.mail-archive.com/rubyonrails-core@googlegroups.com/msg04584.html

regards.

a @ http://codeforpeople.com/

···

On Apr 13, 2008, at 10:16 AM, Frank Tsao wrote:

validates_uniqueness_of :A, :scope => :B

--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama

bit more on the topic

http://pezra.barelyenough.org/blog/2007/11/activerecord-race-conditions/

a @ http://codeforpeople.com/

···

On Apr 13, 2008, at 10:16 AM, Frank Tsao wrote:

Thank you everyone, I have found out the solution which is
"validates_uniqueness_of". The statement as below,

validates_uniqueness_of :A, :scope => :B

Frank
-- Posted via http://www.ruby-forum.com/\.

--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama