Skip to content

Instantly share code, notes, and snippets.

@naveed-ahmad
Created December 25, 2016 16:13
Show Gist options
  • Save naveed-ahmad/3c8ce2e4aa8a85c19725df42a4b1198b to your computer and use it in GitHub Desktop.
Save naveed-ahmad/3c8ce2e4aa8a85c19725df42a4b1198b to your computer and use it in GitHub Desktop.
Manage schema migration, rails's way!
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