Socket
Book a DemoInstallSign in
Socket

db_fixtures_dump

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db_fixtures_dump

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

db:fixtures:dump

Adds db:fixtures:dump rake task to dump all ActiveRecord tables into yaml fixtures

May not work for tables with serialized columns.

Installation

Add this line to your application's Gemfile:

gem 'db_fixtures_dump'

And then execute:

$ bundle

Or install it yourself as:

$ gem install db_fixtures_dump

Usage

$ rake db:fixtures:dump

Output directory

Just like for the db:fixtures:load , you may specify FIXTURES_PATH to be used as the output directory.

$ FIXTURES_PATH=db/backup rake db:fixtures:dump

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

References

Original gists:

  • http://snippets.dzone.com/posts/show/4468 by Michael Boutros
  • https://gist.github.com/iiska/1527911

Making a rake task into a gem:

FAQs

Package last updated on 30 Nov 2014

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.