Skip to content

Commit ea7143c

Browse files
authored
Merge pull request #148 from Invoca/non-production_fix_schema_change_autoload_bug
non-production: autoload column_remove in schem_change all
2 parents f05aefb + 086af85 commit ea7143c

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ 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.2] - Unreleased
8+
### Fixed
9+
- Fixed a bug where `SchemaChange::ColumnRemove` was not loaded and causing an exception to raise
10+
when a column was being removed during migration generation
11+
712
## [1.0.1] - 2022-07-12
813
### Fixed
914
- Remove lingering usage of `fallback_find_primary_key` method that was removed in `0.14.0`
@@ -219,6 +224,7 @@ using the appropriate Rails configuration attributes.
219224
### Added
220225
- Initial version from https://github.com/Invoca/hobo_fields v4.1.0.
221226

227+
[1.0.2]: https://github.com/Invoca/declare_schema/compare/v1.0.1...v1.0.2
222228
[1.0.1]: https://github.com/Invoca/declare_schema/compare/v1.0.0...v1.0.1
223229
[1.0.0]: https://github.com/Invoca/declare_schema/compare/v0.14.3...v1.0.0
224230
[0.14.3]: https://github.com/Invoca/declare_schema/compare/v0.14.2...v0.14.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.1)
4+
declare_schema (1.0.2)
55
rails (>= 5.0)
66

77
GEM

lib/declare_schema/schema_change/all.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module All
77
autoload :Base, 'declare_schema/schema_change/base'
88
autoload :ColumnAdd, 'declare_schema/schema_change/column_add'
99
autoload :ColumnChange, 'declare_schema/schema_change/column_change'
10+
autoload :ColumnRemove, 'declare_schema/schema_change/column_remove'
1011
autoload :ColumnRename, 'declare_schema/schema_change/column_rename'
1112
autoload :ForeignKeyAdd, 'declare_schema/schema_change/foreign_key_add'
1213
autoload :ForeignKeyRemove, 'declare_schema/schema_change/foreign_key_remove'

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.1"
4+
VERSION = "1.0.2"
55
end

0 commit comments

Comments
 (0)