Skip to content

Commit bcfdfef

Browse files
committed
Call AR::Connection's method via connection instance
1 parent d15acd7 commit bcfdfef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/schema/mysql2_specific_schema.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
ActiveRecord::Schema.define do
4-
if supports_datetime_with_precision?
4+
if connection.supports_datetime_with_precision?
55
create_table :datetime_defaults, force: true do |t|
66
t.datetime :modified_datetime, precision: nil, default: -> { "CURRENT_TIMESTAMP" }
77
t.datetime :precise_datetime, default: -> { "CURRENT_TIMESTAMP(6)" }

0 commit comments

Comments
 (0)