Created
December 25, 2016 16:13
-
-
Save naveed-ahmad/3c8ce2e4aa8a85c19725df42a4b1198b to your computer and use it in GitHub Desktop.
Manage schema migration, rails's way!
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 SchemaMigration < ActiveRecord::Base; self.primary_key = :version; end | |
SchemaMigration.find('version').delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment