Skip to content

Commit d580935

Browse files
committed
v0.2.0
1 parent 9f9bd53 commit d580935

3 files changed

Lines changed: 25 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
## [Unreleased]
22

3+
## [0.2.0] - 2026-03-04
4+
5+
- Add `progress.report` for tracking migration progress with a visual bar that updates in place on TTY terminals
6+
- Add `progress eta: true` class-level macro to enable ETA display without passing it on every `report` call
7+
8+
```ruby
9+
class MyMigration < DataCustoms::Migration
10+
progress eta: true
11+
12+
def up
13+
users = User.where(active: true)
14+
total = users.count
15+
users.find_each.with_index(1) do |user, i|
16+
user.update!(name: user.name.strip)
17+
progress.report(i * 100 / total)
18+
end
19+
progress.report(100)
20+
end
21+
end
22+
```
23+
24+
- Fix transaction to wrap `Migration.new` so database operations in `initialize` are rolled back on failure
25+
326
## [0.1.0] - 2025-09-04
427

528
- Initial release

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GIT
1212
PATH
1313
remote: .
1414
specs:
15-
data_customs (0.1.0)
15+
data_customs (0.2.0)
1616
rails (>= 7.1)
1717

1818
GEM

lib/data_customs/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 DataCustoms
4-
VERSION = "0.1.0"
4+
VERSION = "0.2.0"
55
end

0 commit comments

Comments
 (0)