Reset Model to see columns added in Migration

/ Published in: Rails
Save to your folder(s)

If you want to use the Model after adding/removing columns in a migration call this method before accessing the model.

Copy this code and paste it in your HTML
  1. Model#reset_column_information

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.