-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #663 from sj26/make-ticks-bigints
Change tick columns to bigints
- Loading branch information
1 parent
7fd69a3
commit 5d25ac1
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
db/migrate/20220706101937_change_runs_tick_columns_to_bigints.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,17 @@ | ||
# frozen_string_literal: true | ||
|
||
class ChangeRunsTickColumnsToBigints < ActiveRecord::Migration[6.0] | ||
def up | ||
change_table(:maintenance_tasks_runs, bulk: true) do |t| | ||
t.change(:tick_count, :bigint) | ||
t.change(:tick_total, :bigint) | ||
end | ||
end | ||
|
||
def down | ||
change_table(:maintenance_tasks_runs, bulk: true) do |t| | ||
t.change(:tick_count, :integer) | ||
t.change(:tick_total, :integer) | ||
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