Sha256: 9d2260e44978e98c9394786ac9fd74040db03a42c6705c404df886d6d5a7facc

Contents?: true

Size: 485 Bytes

Versions: 8

Compression:

Stored size: 485 Bytes

Contents

class CreateVersions < ActiveRecord::Migration
  def change
    create_table :revelry_content_content_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.integer  :rollback_version_id
      t.datetime :created_at
    end
    add_index :revelry_content_content_versions, [:item_type, :item_id], name: :item_type_and_id
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
revelry_content-1.0.0 lib/generators/revelry/content/templates/create_versions.rb
revelry_content-1.0.0 test/dummy/db/migrate/20150427212126_create_versions.rb
revelry_content-0.0.1.2 lib/generators/revelry_content/templates/create_versions.rb
revelry_content-0.0.1.2 test/dummy/db/migrate/20150427212126_create_versions.rb
revelry_content-0.0.1.1 lib/generators/revelry_content/templates/create_versions.rb
revelry_content-0.0.1.1 test/dummy/db/migrate/20150427212126_create_versions.rb
revelry_content-0.0.1 lib/generators/revelry_content/templates/create_versions.rb
revelry_content-0.0.1 test/dummy/db/migrate/20150427212126_create_versions.rb