mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Remove example migration file
This commit is contained in:
parent
04a16029a4
commit
dfec1afd7e
1 changed files with 0 additions and 16 deletions
|
|
@ -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
|
|
||||||
Loading…
Reference in a new issue