Sha256: ce631a482ebabb806fb9b054ac222e696ad370e9bef06e3f075f1b9e7cd26eea

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

# GhostSchema

**DO NOT USE THIS GEM IN PRODUCTION.**

This gem is intended to be used under development environment.

## Installation

```ruby
gem 'ghost_schema'
```

## Usage

Switching between development branches may causes you following errors.

```console
$ bin/rails db:migrate:status

database: xxx_development

 Status   Migration ID    Migration Name
--------------------------------------------------
   up     20171019092851  Init schema
(snip)
   up     20180319070119  Remove columns
   up     20180330010101  ********** NO FILE **********

$ bin/rails db:rollback VERSION=20180330010101
rails aborted!
ActiveRecord::UnknownMigrationVersionError:

No migration with version number 20180330010101.
```

This gem copies migration files when you run db:migrate.
If you want to run db:migrate:down for missing migration file,
you can do by running db:ghost:migrate:down.

```console
$ bin/rails db:ghost:migrate:down VERSION=20180330010101
== 20180330010101 AddAwesomeColumns: reverting ==============
(snip)
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/meganemura/ghost_schema.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ghost_schema-0.1.0 README.md