Sha256: 4bd4ee6782ffd3268d096cf72bf3db8124185945be4351b38098a98c62715a6b
Contents?: true
Size: 452 Bytes
Versions: 5
Compression:
Stored size: 452 Bytes
Contents
class CreateAuditsTable < ActiveRecord::Migration #:nodoc: def self.up create_table :audits do |t| t.references :audited, :polymorphic => true, :null => false t.references :user t.text :change_set, :null => false t.datetime :created_at, :null => false end add_index :audits, [:audited_id, :audited_type] add_index :audits, [:user_id] end def self.down drop_table :audits end end
Version data entries
5 entries across 5 versions & 1 rubygems