Sha256: bcb7951d1344b721e1203d8b5f4e0bb7eb21d2cfc63b83b510452a53edf5cfb2
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 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 :null => false 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
5 entries across 5 versions & 1 rubygems