Skip to content

Instantly share code, notes, and snippets.

@evaldasg
Created May 23, 2016 11:12
Show Gist options
  • Save evaldasg/48ce52fa728f9e4ce4ee20dcbda0215b to your computer and use it in GitHub Desktop.
Save evaldasg/48ce52fa728f9e4ce4ee20dcbda0215b to your computer and use it in GitHub Desktop.
Rails Migrations stuff.
>> ActiveRecord::Migrator.current_version # prints current DB version
>> ActiveRecord::SchemaMigration.create!(version: '20160606111111') # add DB version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment