From dfec1afd7e1a2df99af0b6b2d48a1ce5291c592c Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Wed, 23 Jul 2025 00:01:41 +0200 Subject: [PATCH] Remove example migration file --- .../future_add_timezone_to_users.rb.example | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 db/migrate/future_add_timezone_to_users.rb.example diff --git a/db/migrate/future_add_timezone_to_users.rb.example b/db/migrate/future_add_timezone_to_users.rb.example deleted file mode 100644 index caf60a88..00000000 --- a/db/migrate/future_add_timezone_to_users.rb.example +++ /dev/null @@ -1,16 +0,0 @@ -# Example migration for adding per-user timezone support -# To use: rename this file to remove .example and run rails db:migrate - -class AddTimezoneToUsers < ActiveRecord::Migration[7.1] - def change - add_column :users, :timezone, :string, default: 'UTC' - add_index :users, :timezone - - # Populate existing users with application timezone - reversible do |dir| - dir.up do - User.update_all(timezone: Time.zone.name) - end - end - end -end \ No newline at end of file