Sha256: c6f132de7da3d8632210d9a46c2cd12800c57705928e5f4728c1cb22471ae48b

Contents?: true

Size: 302 Bytes

Versions: 12

Compression:

Stored size: 302 Bytes

Contents

class AddTemporalExtensionToImpressions < ActiveRecord::Migration[5.0]
  def self.up
    enable_extension 'btree_gist' unless extension_enabled?('btree_gist')
    change_table :impressions, temporal: true, copy_data: true
  end

  def self.down
    change_table :impressions, temporal: false
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
chrono_model-1.2.2 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-1.2.1 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-1.2.0 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-1.1.0 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-1.0.1 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-0.13.2 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-1.0.0 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-0.13.1 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-0.13.0 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-0.12.3 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-0.12.2 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb
chrono_model-0.12.1 spec/aruba/fixtures/migrations/56/20171115195229_add_temporal_extension_to_impressions.rb