This happens on staging/production rails env.
If you add a new column 'xxx' and assign value to it in the same migration,
Then, you may get error like this: undefined method 'xxx'You should do a column reset after add column:
e.g. User.reset_column_information
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.