Skip to content

Commit

Permalink
bump 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jalkoby committed May 23, 2017
1 parent 724602e commit 44101bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,16 @@ squasher will not need to create the db schema and all data from the previous mi

`-e` - tell squasher that you are squashing a Rails engine. To squash migrations you need to configure a dummy app. If your dummy app located outside the engine's folder provide path to it as the next argument `squasher -e ../my-engine-app 2016`

`-m` - for correct work with Rails 5 specify a migration version like `squasher -m 5.0 ...`

## Requirements

It works and was tested on Ruby 2.0+ and Rails 3.1+. It also requires a valid development configuration in `config/database.yml` and using Ruby format in `db/schema.rb` (default Rails use-case).
If an old migration inserted data (created ActiveRecord model records) you will lose this code in the squashed migration, **BUT** `squasher` will ask you to leave a tmp database which will have all data that was inserted while migrating. Using this database you could add that data as another migration, or into `config/seed.rb` (the expected place for this stuff).

## Changelog
- 0.4.0
- Support rails versioned migrations which were introduced in Rails 5
- 0.3.1
- fix init migration generation
- 0.3.0
Expand Down
6 changes: 3 additions & 3 deletions squasher.gemspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# coding: utf-8
# encoding: utf-8

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = "squasher"
spec.version = "0.3.1"
spec.version = "0.4.0"
spec.authors = ["Sergey Pchelintsev"]
spec.email = ["[email protected]"]
spec.email = ["[email protected]"]
spec.description = %q{Squash your old migrations}
spec.summary = %q{Squash your old migrations}
spec.homepage = "https://github.com/jalkoby/squasher"
Expand Down

0 comments on commit 44101bc

Please sign in to comment.