Sha256: 273dbab611dbc5814082b0eb978b32649fef9261d23a2aa2167e0da28142e0fc
Contents?: true
Size: 457 Bytes
Versions: 8
Compression:
Stored size: 457 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
8 entries across 8 versions & 1 rubygems