HabitatMap/AirCasting

View on GitHub
db/migrate/20240220122554_add_time_with_timezone_to_measurements.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddTimeWithTimezoneToMeasurements < ActiveRecord::Migration[6.1]
  def up
    execute <<-SQL
      ALTER TABLE measurements
      ADD COLUMN time_with_time_zone TIMESTAMPTZ;
    SQL
  end

  def down
    remove_column :measurements, :time_with_time_zone
  end
end