Created
September 7, 2014 22:48
-
-
Save rojotek/64a4ea81d7e557c55eae to your computer and use it in GitHub Desktop.
rails models in migrations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ModelClass < ActiveRecord::Base | |
attr_protected | |
end | |
def up | |
ModelClass.reset_column_information | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment