-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Rails Migration to Add a 'scheduled_datetime' (#22408)
* Create a Rails Migration to Add a 'scheduled_datetime' Column of Type timestamptz to the Postgres hearing Table * include the schema.rb file * Change comment in the migration
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
db/migrate/20240805162358_add_scheduled_datetime_to_hearings.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class AddScheduledDatetimeToHearings < ActiveRecord::Migration[6.0] | ||
def up | ||
safety_assured do | ||
add_column :hearings, :scheduled_datetime, :timestamptz, null: true, comment: "Timestamp with zone datatype a hearing is scheduled to take place in UTC. Intended to eventually replace scheduled_time column." | ||
end | ||
end | ||
|
||
def down | ||
safety_assured do | ||
remove_column :hearings, :scheduled_datetime | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters