class CreateLogs < ActiveRecord::Migration

  def self.up
    create_table "logs", :force => true do |t|
      t.integer  "user_id"
      t.string   "table_name",    :limit => 80
      t.string   "j_table_name",  :limit => 80
      t.integer  "record_id"
      t.integer  "dml_type_code", :limit => 2
      t.datetime "created_at"
    end
    add_index "logs", ["table_name"], :name => "table_name"
  end

  def self.down
    drop_table :logs
  end

end
