Please sign in to comment.
Failing test case for values not persisting after add_column
Given a migration like add_column :posts, :body, :string Post.find_each do |p| p.body = 'foo' p.save! end both the assignment to 'body' and the save will succeed, but the value isn't written into the database, and you're left with nil values for 'body'. Perhaps add_column should implicitly call reset_column_information? Having the 'body' accessor raise NoMethodError instead of appearing to succeed would also be fine...
- Loading branch information...
Showing with 21 additions and 0 deletions.