so simply i create a new migration and add the following
ex:
Group.create((some_attributes>))
and it simply works fine, until someone later one adds a new column
in another new migration and adds validation on that column in the Model
and here the problem occurs
my old migration throws exception because of validation added on a new column added later in another migration but Model carries code validating it
how to solve these problems?
i suggest not using create at all
but rather use new and set our attributes
then save without validations
No comments:
Post a Comment