Forum: Ruby on Rails Re: ActiveRecord and SQL Server

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ed Silva (Guest)
on 2006-05-04 19:25
(Received via mailing list)
The column in question is named timestamp.



On May 4, 2006, at 9:55 AM, removed_email_address@domain.invalid wrote:
What is the name of the column?


Ed Silva schreef:
Hi all,

I am exploring using RoR for a new project but have run into a problem
with ActiveRecord and SQL Server's timestamp datatype.

We have a NOT NULL timestamp column in a table and ActiveRecord keeps
trying to update it, which promptly causes it to blow up. I have tried
making the value NULL for insert and update in the model, but SQL
Server doesn't like that either.

Is there any way to get ActiveRecord to just completely ignore that
column short of using a view to hide it?


This topic is locked and can not be replied to.