https://github.com/railsware/column_info_reset
Reset ActiveRecord column info when unknown column exception occurs
https://github.com/railsware/column_info_reset
Last synced: 11 months ago
JSON representation
Reset ActiveRecord column info when unknown column exception occurs
- Host: GitHub
- URL: https://github.com/railsware/column_info_reset
- Owner: railsware
- Created: 2011-09-20T16:52:41.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-09-20T16:54:40.000Z (over 14 years ago)
- Last Synced: 2025-02-02T14:17:36.603Z (11 months ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 21
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Column Info Reset
Simple gem that reset ActiveRecord column information when
Unknown column 'bla' in 'field list'
exception occurs.
This gem allows you safely run migrations that to drop **unused** table columns.
## Installation
gem install column_info_reset
## Tests
Run all tests against two active records versions:
script/test
### ActiveRecord v1.x.x
rvm install ruby-1.8.6
script/bundle-ar1 install
script/bundle-ar1 exec spec -fs -c spec
### ActiveRecord v3.x.x
rvm install ruby-1.9.2
script/bundle-ar3 install
script/bundle-ar3 exec spec -fs -c spec