Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit 088cb6a

Browse files
committed
Remove stale columns
1 parent a70a724 commit 088cb6a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

db/migrate/20250701161640_add_account_status.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ def up
1212
ELSE 'draft'
1313
END
1414
SQL
15+
16+
remove_column :accounts, :is_active
17+
remove_column :accounts, :scheduled_for_deletion
1518
end
1619

1720
def down
21+
add_column :accounts, :is_active, :boolean, default: true, null: false
22+
add_column :accounts, :scheduled_for_deletion, :boolean, default: false
23+
1824
# Restore the original boolean fields based on status
1925
execute <<-SQL
2026
UPDATE accounts

db/schema.rb

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)