Skip to content

Commit 4668662

Browse files
author
Sam Phippen
committed
Call reset_column_information after defining mock model's table.
This is necessary in Rails 5 for the Model class to be able to detect the primary key.
1 parent 50c2b76 commit 4668662

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/support/ar_classes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def self.extended(host)
1313
nonexistent_model_id integer
1414
)
1515
eosql
16+
17+
host.reset_column_information
1618
end
1719
end
1820

0 commit comments

Comments
 (0)