/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/nulldb_adapter/column.rb is in ruby-activerecord-nulldb-adapter 0.3.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | class ActiveRecord::ConnectionAdapters::NullDBAdapter
class Column < ::ActiveRecord::ConnectionAdapters::Column
private
def simplified_type(field_type)
super || simplified_type_from_sql_type
end
def simplified_type_from_sql_type
case sql_type
when :primary_key
:integer
when :string
:string
end
end
end
end
|