Sha256: 8da2c95147079d885d5b0c4eeb6fa30bb58158685a5b78399fa30c148b2e3e4e

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

class AddAdditionalTimeZoneNameToCounties < ActiveRecord::Migration[5.0]
  def up
    unless column_exists?(:us_geo_counties, :time_zone_2_name)
      add_column :us_geo_counties, :time_zone_2_name, :string, null: true, limit: 30
    end
  end

  def down
    remove_column :us_geo_counties, :time_zone_2_name
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
us_geo-2.1.1 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
us_geo-2.1.0 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
us_geo-2.0.4 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
us_geo-2.0.3 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
us_geo-2.0.2 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
us_geo-2.0.1 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb
us_geo-2.0.0 db/migrate/20230417000600_add_additional_time_zone_name_to_counties.rb