I encountered with this situation today;
I have `spree_user` object which can have one `bill_address` but bill address has one filed called `zipcode` field which is required and needs to be valid but I might not always have valid data for that field.
So needed to skip the validation for create method. Found that its not possible to skip validation using `create` method. Continue reading
You might stuble upon some situation like “how to handle : some field’s presence is mandory in some context but not always”. It is how I decided to handle such situation Continue reading
The situation might come when the whole data-column in few tables of production database have to be altered. Most probably when you forgot to set default value in data-fields and stored Null value is troubling you when querying. Continue reading
To be continue..
Lets consider an entity relationship as following where there could be many to many or one to many relationship through a join table as described below. Continue reading
Its very easy to perform case insensitive searches in Rails as well as any SQL queries. SQL some useful functions to do so. Either you can UpCase or DownCase both the operands to perform such searching operations. Continue reading