Overriding primary key protection in Rails -
Is there a way to cross the group assignment security on the primary key of a model in the rail?
Default termination
not ideal
Use direct assignment You can also take advantage of the blocks.
model. Create! Do it M | M.id = 27 m.attribute = "foo" end
Comments
Post a Comment