Sha256: 9298bfd79cf8d31ffb8bc7d3976e2cb7e2d8784a0f796014d8d723a4a2043894

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

class UpgradeTo120 < ActiveRecord::Migration
  def self.up
    ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
    create_table :cms_revisions, :force => true do |t|
      t.string    :record_type
      t.integer   :record_id
      t.text      :data
      t.datetime  :created_at
    end
    add_index :cms_revisions, [:record_type, :record_id, :created_at]
  end

  def self.down
    ComfortableMexicanSofa.establish_connection(ActiveRecord::Base)
    drop_table :cms_revisions
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.4.9 db/migrate/upgrades/03_upgrade_to_1_2_0.rb