Mercurial > zeropaste
comparison db/migrate/20180625074738_convert_timestamps_to_with_time_zone.rb @ 499:d2ef59c9a4b4
Use rails rubocop
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:33:27 +0900 |
parents | b1ef80121c79 |
children |
comparison
equal
deleted
inserted
replaced
498:300bac944674 | 499:d2ef59c9a4b4 |
---|---|
1 class ConvertTimestampsToWithTimeZone < ActiveRecord::Migration[5.2] | 1 class ConvertTimestampsToWithTimeZone < ActiveRecord::Migration[5.2] |
2 COLUMNS = { | 2 COLUMNS = { |
3 ar_internal_metadata: [:created_at, :updated_at], | 3 ar_internal_metadata: [ :created_at, :updated_at ], |
4 pastes: [:created_at, :updated_at], | 4 pastes: [ :created_at, :updated_at ] |
5 } | 5 } |
6 | 6 |
7 def up | 7 def up |
8 COLUMNS.each do |table, columns| | 8 COLUMNS.each do |table, columns| |
9 change_table table do |t| | 9 change_table table do |t| |