File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class Rocket < ActiveRecord::Base
103
103
end
104
104
105
105
def setup
106
- connection = ActiveRecord ::Base . lease_connection
106
+ connection = ActiveRecord ::Base . connection
107
107
connection . execute <<-SQL
108
108
CREATE TABLE rockets(
109
109
id SERIAL PRIMARY KEY USING HASH WITH (bucket_count=4)
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def down
207
207
$stdout = original
208
208
end
209
209
210
- if ActiveRecord ::Base . lease_connection . supports_check_constraints?
210
+ if ActiveRecord ::Base . connection . supports_check_constraints?
211
211
def test_schema_dumps_check_constraints
212
212
constraint_definition = dump_table_schema ( "products" ) . split ( /\n / ) . grep ( /t.check_constraint.*products_price_check/ ) . first . strip
213
213
if current_adapter? ( :Mysql2Adapter )
You can’t perform that action at this time.
0 commit comments