Sha256: 8e4222c1b281b9a2c77f9bf549227d97d854f905b9a96f46a939de195cb19d32
Contents?: true
Size: 506 Bytes
Versions: 94
Compression:
Stored size: 506 Bytes
Contents
class CreateVersions < ActiveRecord::Migration[4.2] def self.up create_table :versions do |t| t.string :item_type, null: false, limit: 255 t.integer :item_id, null: false t.string :event, null: false, limit: 255 t.string :whodunnit, limit: 255 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
94 entries across 94 versions & 1 rubygems