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
paper_trail-3.0.9 lib/generators/paper_trail/templates/create_versions.rb
champollion-0.1.7 db/migrate/20150504193440_create_versions.rb
champollion-0.1.6 db/migrate/20150504193440_create_versions.rb
paper_trail-4.0.0.rc1 lib/generators/paper_trail/templates/create_versions.rb
champollion-0.1.5 db/migrate/20150504193440_create_versions.rb
champollion-0.1.2 db/migrate/20150504193440_create_versions.rb
champollion-0.1.1 db/migrate/20150504193440_create_versions.rb
champollion-0.1.0 db/migrate/20150504193440_create_versions.rb
paper_trail-3.0.8 lib/generators/paper_trail/templates/create_versions.rb
blacklight-spotlight-0.3.1 spec/internal/db/migrate/20150303163409_create_versions.rb
blacklight-spotlight-0.3.0 spec/internal/db/migrate/20150302231344_create_versions.rb
paper_trail-3.0.7 lib/generators/paper_trail/templates/create_versions.rb
paper_trail-4.0.0.beta2 lib/generators/paper_trail/templates/create_versions.rb
paper_trail-4.0.0.beta1 lib/generators/paper_trail/templates/create_versions.rb
app_kit-0.0.2 spec/dummy/db/migrate/20141214052947_create_versions.rb
app_kit-0.0.1 spec/dummy/db/migrate/20141214052947_create_versions.rb
paper_trail-3.0.6 lib/generators/paper_trail/templates/create_versions.rb
paper_trail-3.0.5 lib/generators/paper_trail/templates/create_versions.rb
paper_trail-3.0.2 lib/generators/paper_trail/templates/create_versions.rb
paper_trail-3.0.1 lib/generators/paper_trail/templates/create_versions.rb