Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request mbleigh#449 from seuros/master
Browse files Browse the repository at this point in the history
Improve migration/upgrade instructions
  • Loading branch information
bf4 committed Jan 3, 2014
2 parents 6bbd269 + 8633b95 commit 7d87943
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,29 @@ gem 'acts-as-taggable-on'

and bundle:

```ruby
```shell
bundle
```

#### Post Installation

```shell
# For the latest versions
rake railties:install:migrations FROM=acts_as_taggable_on_engine db:migrate
Install migrations

# For versions 2.4.1 and earlier
```shell
# For the latest versions :
rake acts_as_taggable_on_engine:install:migrations
# For versions 2.4.1 and earlier :
rails generate acts_as_taggable_on:migration
```

Review the generated migrations then migrate :
```shell
rake db:migrate
```

#### Upgrading

see [UPGRADING](UPGRADING)
see [UPGRADING](UPGRADING.md)

## Usage

Expand Down Expand Up @@ -357,4 +362,4 @@ You can run all the tests across all the Rails versions by running `rake apprais

## License

See [LICENSE](https://github.com/mbleigh/acts-as-taggable-on/blob/master/LICENSE.md)
See [LICENSE](https://github.com/mbleigh/acts-as-taggable-on/blob/master/LICENSE.md)
2 changes: 1 addition & 1 deletion UPGRADING → UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ When upgrading

Re-run the migrations generator

rake railties:install:migrations FROM=acts_as_taggable_on_engine db:migrate
rake acts_as_taggable_on_engine:install:migrations

It will create any new migrations and skip existing ones
4 changes: 2 additions & 2 deletions acts-as-taggable-on.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

if File.exists?('UPGRADING')
gem.post_install_message = File.read('UPGRADING')
if File.exists?('UPGRADING.md')
gem.post_install_message = File.read('UPGRADING.md')
end

gem.add_runtime_dependency 'rails', ['>= 3', '< 5']
Expand Down

0 comments on commit 7d87943

Please sign in to comment.