Sha256: d3dd1f92e9c88c79ffb5edb96631612612ce7220066dc21829ac87c3b21a27e2

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

# encoding: UTF-8

Sequel.migration do
  up do
    [:content, :spontaneous_content_archive, :spontaneous_content_history].each do |table|
      alter_table table do
        add_column :content_hash_changed_at, :timestamp
      end
      self[table].update(content_hash_changed_at: :modified_at)
    end
  end

  down do
    [:content, :spontaneous_content_archive, :spontaneous_content_history].each do |table|
      alter_table table do
        drop_column :content_hash_changed_at
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta7 db/migrations/20140519150253_add_content_hash_timestamp.rb
spontaneous-0.2.0.beta6 db/migrations/20140519150253_add_content_hash_timestamp.rb