Invoke #column_name when available, use #name otherwise

Thanks @cupakromer for the suggestion

Note: include tests only for Rails >= 4.0.0