I have a table in SQL Server set up with a default value for a uniqueidentifier not null.
I do not want ActiveRecord to send the null value to the database, but it is, causing a 'Cannot insert null value into not null column' error.
How do I save an ActiveRecord without sending columns that have defaults? I don't really want to:
- Making the columns nullable.
- Using Rails to generate the GUID and sending it to the database
- Writing the query manually.
I could do either 2 or 3 this seems like something that has to be doable in plain ActiveRecord/RoR.