Sha256: 2e9f558f06d782ae5d621d220d4ae82f97c8e9c63264a9789429c2ffe621c14c

Contents?: true

Size: 374 Bytes

Versions: 25

Compression:

Stored size: 374 Bytes

Contents

class CreateVersions < ActiveRecord::Migration
  def change
    create_table :versions do |t|
      t.string   :item_type, :null => false
      t.integer  :item_id,   :null => false
      t.string   :event,     :null => false
      t.string   :whodunnit
      t.text     :object
      t.datetime :created_at
    end
    add_index :versions, [:item_type, :item_id]
  end
end

Version data entries

25 entries across 25 versions & 6 rubygems

Version Path
mercury_engine-0.0.1 db/migrate/20130318080000_create_versions.rb
etabliocms_core-0.0.12 db/migrate/20120314110048_create_versions.etabliocms_core_engine.rb
etabliocms_core-0.0.11 db/migrate/20120314110048_create_versions.etabliocms_core_engine.rb
etabliocms_core-0.0.10 db/migrate/20120314110048_create_versions.etabliocms_core_engine.rb
etabliocms_core-0.0.9 db/migrate/20120314110048_create_versions.etabliocms_core_engine.rb