Sha256: 641ab0a5bc37b3f7acdcab9671b570a2adf65c878a1f21f29472ce5870f02e94

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

# DeprecatedColumns

Permits a grace period for substractive column changes, via Active Record
migrations.

This was inspired by (read: entirely lifted) from Whitehall with a few
modifications.

## Installation

Add this line to your application's Gemfile:

```gem 'deprecated_columns'```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install deprecated_columns

## Usage

```ruby
class User < ActiveRecord::Base
  deprecated_columns :name
end
```

For subtractive migrations to columns in your schema you'll see a warning,
unless you've specifically marked the column(s) using the `deprecated_columns`
macro.

## Contributing

Bug reports and pull requests are welcome on GitHub at
https://github.com/alphagov/deprecated_columns. This project is intended to
be a safe, welcoming space for collaboration, and contributors are expected to
adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.

## License

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deprecated_columns-0.1.1 README.md
deprecated_columns-0.1.0 README.md