Skip to content

Commit c37338e

Browse files
authored
Merge pull request #146 from Invoca/non-production_remove_missed_cleanup_from_rails_4_removal
Non production remove missed cleanup from rails 4 removal
2 parents c66c717 + 19769b5 commit c37338e

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Invoca/octothorpe

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

55
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.0.1] - Unreleased
8+
### Fixed
9+
- Remove lingering usage of `fallback_find_primary_key` method that was removed in `0.14.0`
10+
711
## [1.0.0] - 2022-03-28
812
### Added
913
- Added support for Ruby 3+

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
declare_schema (1.0.0)
4+
declare_schema (1.0.1)
55
rails (>= 5.0)
66

77
GEM

lib/declare_schema/model/index_definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class << self
3737
def for_model(model, old_table_name = nil)
3838
t = old_table_name || model.table_name
3939

40-
primary_key_columns = Array(model.connection.primary_key(t)).presence || fallback_find_primary_key(model, t) or
40+
primary_key_columns = Array(model.connection.primary_key(t)).presence or
4141
raise "could not find primary key for table #{t} in #{model.connection.columns(t).inspect}"
4242

4343
primary_key_found = false

lib/declare_schema/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module DeclareSchema
4-
VERSION = "1.0.0"
4+
VERSION = "1.0.1"
55
end

0 commit comments

Comments
 (0)