Sha256: ee2be87235a0604bd9994a6cac528ecd285430f28bb9ca9f1e9e3b606be64d41
Contents?: true
Size: 543 Bytes
Versions: 12
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.text :object t.text :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
12 entries across 12 versions & 1 rubygems