Skip to content

Commit 168cabe

Browse files
aidanharanAidan Haranwpolicarpo
authored
Use native String#end_with (#876)
Co-authored-by: Aidan Haran <aharan@fusioneer.com> Co-authored-by: Wanderson Policarpo <wpolicarpo@gmail.com>
1 parent 8d7d442 commit 168cabe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#### Fixed
44

55
- [#872](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/872) Use native String#start_with
6+
- [#876](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/876) Use native String#end_with
67
- [#873](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/873) Various fixes to get the tests running for Rails 6.1
78
- [#874](https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/pull/874) Deduplicate schema cache structures
89

lib/active_record/connection_adapters/sqlserver/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def indexes(table_name)
5151
index[:index_keys].split(",").each do |column|
5252
column.strip!
5353

54-
if column.ends_with?("(-)")
54+
if column.end_with?("(-)")
5555
column.gsub! "(-)", ""
5656
orders[column] = :desc
5757
end

0 commit comments

Comments
 (0)