class ActiveRecord::ConnectionAdapters::PostgreSQL::TableDefinition

def new_column_definition(name, type, **options) # :nodoc:

:nodoc:
def new_column_definition(name, type, **options) # :nodoc:
  case type
  when :virtual
    type = options[:type]
  end
  super
end