Skip to content

Instantly share code, notes, and snippets.

@rojotek
Created September 7, 2014 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rojotek/64a4ea81d7e557c55eae to your computer and use it in GitHub Desktop.
Save rojotek/64a4ea81d7e557c55eae to your computer and use it in GitHub Desktop.
rails models in migrations
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