Displaying 13 results from an estimated 13 matches for "autonumbering".
2006 Jun 30
4
ActiveRecord Migrations, without autonumbered PK''s
I love using ActiveRecord Migrations to build tables.
Sometimes, I don''t want to use autogenerated PK''s - I want to set them
automatically (why? I''m importing read only data from a large list of
medications, and want to use the PK''s assigned by the medication
research company...). Is there anyway to do this using Migrations? I
know that I don''t
2009 Feb 23
1
"autonumber" for grouping variable
Dear R users,
my dataframe looks like this
head(dat)
Id sex byear age
1 300 m 2003 50
2 300 m 2003 36
3 402 f 2003 29
4 402 f 2003 21
5 402 f 2003 64
6 150 m 2005 43
...
...(where Id is just the Identification number of Individual, sex (male or
female), byear (=birthyear))
now, I 'd like to add a column, where each Individual gets an automated
number starting
2006 Jun 19
3
Using a records "id" in validation
I need to use an order''s id value in a validation. Basically, I am
charging an order via a credit card API. I only want ot save the order
if the credit card authorization was approved. I also want to send the
order id to the credit card API as a transaction reference. And last
but not least I want to add an error to the order object if the
transaction is declined.
The problem is
2006 Mar 01
6
How to retrieve attributes from HABTM?
We have tables Users and Communities linked by has_an_belongs_to_many.
The join table Communities_Users has additional fields [ is_active,
is_blocked, join_date] etc. These are populated using
@user.push_with_attributes(:is_active => true,...).
Later on how do we update or retrieve the attributes in the link table
for a given user or a community with doing it explicitly using SQL?
Thanks,
2004 Jun 17
0
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
On Thu, 17 Jun 2004, Patrick Meredith wrote:
> How is this done? Everything logical I have tried has failed, here was
> one attempt:
Can you give a few more details about what you are doing? Are you running
the verifier before writing out bytecode? Is your code operating as a
pass? Can you send a dump of the generated LLVM code?
> Constant *C = (Constant*)
2007 Oct 30
5
Using UUID in a Migration
Has anyone ever used UUID in a migration?
I thought I could set the default value of a field to be UUID but that
only sets the value the string instead of executing the function to
create a new unique identifier.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
2004 Jun 17
4
[LLVMdev] generating instructions with embedded ConstantExprs from within LLVM
How is this done? Everything logical I have tried has failed, here was one attempt:
Constant *C = (Constant*) ConstantArray::get(inst2string(I)); //fucnction defined elsewhere
//generates a correct Global string
GlobalVariable *str = new GlobalVariable(C->getType(), true,
GlobalValue::InternalLinkage,
C, mkStrName( strNumber++ ), &M);
std::vector<Value*>
2007 Jan 12
1
realtime extensions, labels
I cannot seem to find any reference to labels in realtime extensions -
using 1.4.
I've googled until my eyes have bled, and also scoured voip-info.org.
Is there anything that helps me here ?
Many thanks.
Julian
2006 May 10
12
how best to implement lookup table?
Hi all -
I''d like to implement a lookup table in my app that contains some
reference data, just some status codes and their descriptions. What''s
the most appropriate approach according to the "rails way" of doing
things? Would I just implement a has_many relationship? Let''s say
these are Order status codes, would the StatusCode have many Orders?
This
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello,
I just can''t seem to find a way to extend a form dynamically in ROR.
Say I am writing a recipe website. There is one form to enter the
recipe. There is room for N number of ingredients (let''s say a text
field for each ingredient name and selection list for the amount). What
if the user wants to add more than N ingredients as he types them in?
how do I do this without
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
Modern distributions are moving toward a common boot scheme called "The Boot
Loader Specification". This patch enables syslinux to parse the drop-in files
that are defined by this new specification.
Link to documentation of the options added to syslinux by this patch:
https://drive.google.com/uc?export=download&id=1nuRISVJeE1whYggFURywoQFpPzc6s1MC
MD5 (syslinux-bls1.txt) =
2006 Jan 12
7
Is anyone using oracle with RoR successfully?
Hi,
Is anyone using Oracle with RoR successfully?
Is everything running smoothly?
What are the main issues?
any response is appreciated
thanks,
Chris
--
Posted via http://www.ruby-forum.com/.
2006 Jul 23
7
"throwing out the old": does Rails really not support...
Frankly I''m losing tolerance for the MS "stack." And I''m intrigued by
Rails. But in my outfit I''m not only the web person, but also the
application person and the DBA. So when I read that Rails doesn''t want
to handle things like "compound keys" I blew right by those claims,
thinking, "no way."
But before I go deeper, I