microseconds(time)
‘0.123456’ -> 123456 ‘1.123456’ -> 123456
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 162 def microseconds(time) ((time[:sec_fraction].to_f % 1) * 1_000_000).to_i end