Skip to content

railsware/column_info_reset

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
db
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Reset ActiveRecord column info when unknown column exception occurs

Resources

Stars

Watchers

Forks

Packages

No packages published