Sha256: 599f909c7273158b69a4ea4890fa6fc3c126aae8f0b4943052ce07c3b3a1cc27
Contents?: true
Size: 507 Bytes
Versions: 39
Compression:
Stored size: 507 Bytes
Contents
class CreateVersions < ActiveRecord::Migration def self.up 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_changes t.text :object t.datetime :created_at end add_index :versions, [:item_type, :item_id] end def self.down remove_index :versions, [:item_type, :item_id] drop_table :versions end end
Version data entries
39 entries across 39 versions & 1 rubygems