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