Run rake db:seed and it generates the output:
rake db:seed --trace **Invoke db:seed (first_time)**Execute db:seed **Invoke db:abort_if_pending_migrations (first_time)**Invoke environment (first_time)**Execute environment **Invoke db:load_config (first_time)**Execute db:load_config **Execute db:abort_if_pending_migrations
The reason for this problem is that the query is blocked by the validation of your model. Unfortunately, it won’t be displayed on the console output. In order to resolve it, you have to add exclamation mark after create method like Product.create!(…..), this will make the operation to throw an execption if there is some problem with your model.