search for: modified_at

Displaying 4 results from an estimated 4 matches for "modified_at".

2008 Sep 12
0
polymorphism with created_at and modified_at
Hi, I was wondering what happens, if I use polymorphism in combination with created_at and modified_at? Lets say I have 3 models, which all have the attributes created_at and modified_at, then how will they updated? Will changes in the child affect the "modified_at" of the parent? Will a "child.attribute_at()" yields the value of the child or the parent? Given the child, how...
2005 Sep 02
7
Form to update two tables
...;notice''] = "Signup successful" redirect_back_or_default :action => "welcome" end end table COMPANIES --------------- CREATE TABLE companies ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(40) NOT NULL, info VARCHAR(40), modified_at DATETIME, created_at DATETIME, access DATETIME, PRIMARY KEY(id) ); table USERS ----------- CREATE TABLE users ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, login VARCHAR(40) NOT NULL, first VARCHAR(40), last VARCHAR(40), pswd VARCHAR(40) NOT NULL, modified_at DAT...
2006 Jul 05
5
Help with migrations and create
After creating a table in a create table migration, I''m then attempting to populate a couple of rows of data in the table using the create method. The first row gets inserted into the database, but any further calls generate a select against the database, but no insert. Am I doing something wrong, or is it inappropriate to create more than a single row of data in a table using
2007 Jun 27
0
ActiveRecord Type issue -- What am I missing?
...all set. I am puzzled by the result. The number I expected to see was 12.34. Instead I saw just 12. The log showed: FixedDbNum: int to float for `price`: 1234 / (10**2) = 12.34 Result: 12 (class=Fixnum, model=#<Service:0xb6931500 @attributes={"reference"=>"7000", "modified_at"=>nil, "billing_frequency"=>"1", "price"=>12.34, "billing_frequency_unit"=>"", "id"=>"1", "setup_fee"=>"9", "user_id"=>"1", "created_at"=>"2007-0...