application model: drop unused test_connection method.
This commit is contained in:
@@ -418,13 +418,6 @@ class ApplicationRecord < ActiveRecord::Base
|
|||||||
def columns(*params)
|
def columns(*params)
|
||||||
super.reject {|x| x.sql_type == "tsvector"}
|
super.reject {|x| x.sql_type == "tsvector"}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_connection
|
|
||||||
limit(1).select(:id)
|
|
||||||
return true
|
|
||||||
rescue PG::Error
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user