How do you update Rails from a changeset?

How do you update Rails from a changeset. I am trying to install the
has_many :through fix that lets you do @c.books<<book.