Refactored remove_column #3707

Merged
merged 1 commit into from May 2, 2012

Conversation

Projects
None yet
4 participants
Contributor

ebeigarts commented Nov 21, 2011

ActiveRecord::Table#remove should use *column_names instead of column_names.

So, I have removed unnecessary flatten for column_names that also caused issues here.

Member

jonleighton commented Nov 21, 2011

Unsure about this. I agree with the principle but there might be apps in the wild that are passing an array to remove_column. cc @tenderlove

Contributor

ebeigarts commented Nov 21, 2011

At least it isn't documented anywhere that we can pass nested Arrays in column_names here.

Member

drogus commented Dec 10, 2011

I would add deprecation warning and merge it after next release

This should be ok for master now?

@ebeigarts hey, could you bring this up-to-date with master, so we can review it and continue the discussion? Thanks.

@jonleighton can we go ahead to merge this in master?

Member

jonleighton commented May 1, 2012

We can merge this if a deprecation is added.

Member

drogus commented May 1, 2012

I've rebased that commit and added deprecation warning here: drogus/rails@d7e60b6, @jonleighton does it look good, should I push those?

Member

jonleighton commented May 2, 2012

@drogus seems fine

drogus merged commit ae8f497 into rails:master May 2, 2012

Member

drogus commented May 2, 2012

I've deprecated this behavior here: 02ca915

yahonda referenced this pull request in rsim/oracle-enhanced Aug 22, 2012

Merged

Support Refactored remove_column with Oracle #172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment