Sha256: bfa3df5df5479c6c5d41068d004b2ee1fe3a6b408754577468caebbeb9d9125a
Contents?: true
Size: 543 Bytes
Versions: 8
Compression:
Stored size: 543 Bytes
Contents
class CreateDrafts < ActiveRecord::Migration def change create_table :drafts do |t| t.string :item_type, :null => false t.integer :item_id, :null => false t.string :event, :null => false t.string :whodunnit# :null => false t.json :object t.json :previous_draft t.timestamps end change_table :drafts do |t| t.index :item_type t.index :item_id t.index :event t.index :whodunnit t.index :created_at t.index :updated_at end end end
Version data entries
8 entries across 8 versions & 1 rubygems