GithubHelp home page GithubHelp logo

safe-migrations's People

Contributors

dwaller avatar foobarfighter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gnachang dwaller

safe-migrations's Issues

Updated for latest versions of ActiveRecord, and more

Hi Bob,

Great gem! Every Rails team should use this.

I created a fork with a number of changes that worked well for our team. Rather than assume you agree with them all, I wanted to get your thoughts before submitting a PR. Here's the list:

  1. Updated for activerecord 3.2+
  2. Fixed db:schema:load and db:test:prepare (thanks to @nickelser)
  3. Added new unsafe operations - adding a column with a non-null default value, and adding a json column in Postgres
  4. Added sections to readme on dangerous operations and how to do them safely
  5. Simplied error messages
  6. Removed the force option - too easy to abuse
  7. Run migrations in tests instead of mocks (switched to minitest for the fork, but this can be easily rewritten in rspec)
  8. Added TravisCI integration for activerecord 3.2, 4.0, 4.1 and 4.2

Let me know the best way to proceed. Thanks!

- Andrew

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.