Sha256: 47d206d2e8ec20640188ae53cfc79b167a9da71130a98afd4ea0d8be6089b56b
Contents?: true
Size: 478 Bytes
Versions: 5
Compression:
Stored size: 478 Bytes
Contents
class CreateLogs < ActiveRecord::Migration def self.up create_table :logs do |t| t.integer :source_id t.integer :message_id t.integer :report_id t.integer :level_id t.timestamps end add_index :logs, :report_id add_index :logs, :message_id add_index :logs, :level_id end def self.down remove_index :logs, :level_id remove_index :logs, :report_id remove_index :logs, :message_id drop_table :logs end end
Version data entries
5 entries across 5 versions & 1 rubygems