Skip to content

Commit

Permalink
Rename unique index on points to `unique_points_lat_long_timestamp_us…
Browse files Browse the repository at this point in the history
…er_id_index`
  • Loading branch information
Freika committed Jan 21, 2025
1 parent 8bf69e1 commit 4c6baad
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .app_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.23.0
0.23.1
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

# 0.23.1 - 2025-01-21

### Fixed

- Renamed unique index on points to `unique_points_lat_long_timestamp_user_id_index` to fix naming conflict with `unique_points_index`.

# 0.23.0 - 2025-01-20

## ⚠️ IMPORTANT ⚠️
Expand Down
4 changes: 2 additions & 2 deletions db/migrate/20250120154555_add_unique_index_to_points.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ class AddUniqueIndexToPoints < ActiveRecord::Migration[8.0]
def up
add_index :points, %i[latitude longitude timestamp user_id],
unique: true,
name: 'unique_points_index',
name: 'unique_points_lat_long_timestamp_user_id_index',
algorithm: :concurrently
end

def down
remove_index :points, name: 'unique_points_index'
remove_index :points, name: 'unique_points_lat_long_timestamp_user_id_index'
end
end
2 changes: 1 addition & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c6baad

Please sign in to comment.