Sha256: 951be5f8aaca23151c49d7f31e6c5608853f5b650df1a91a02745f77bb14f05c
Contents?: true
Size: 468 Bytes
Versions: 37
Compression:
Stored size: 468 Bytes
Contents
class CreateVersions < ActiveRecord::Migration[4.2] 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 t.datetime :created_at end add_index :versions, %i[item_type item_id] end def self.down remove_index :versions, %i[item_type item_id] drop_table :versions end end
Version data entries
37 entries across 37 versions & 3 rubygems