Socket
Book a DemoInstallSign in
Socket

latest_migration

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

latest_migration

0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Build Status Gem Version

latest_migration

latest_migration is a Ruby on Rails gem that allows you to open your latest migration file in text editor. It saves the time of selecting, copying and opening the file in your editor.

Installation

  • Add latest_migration to your Gemfile:
gem 'latest_migration', group: :development
  • Install with: bundle install

Usage

When installed, you have available two new Rake tasks:

rake latest_migration:open
rake latest_migration:path

The first one opens the latest migration in the text editor.

By default it uses subl command to open the file. You can override this with initializer:

# config/initializers/latest_migration.rb
LatestMigration::Base.editor = :mine

You can use pass any command name you wish (like :mine, :nano etc.).

The second command just prints the filename of latest migration to standard output, like:

/Users/Arek/Workspace/myapp/db/migrate/20151101184727_create_tags.rb

License

latest_migration is released under the MIT license:

Author

Arkadiusz Fal

Copyright © 2015 Arkadiusz Fal

FAQs

Package last updated on 09 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.