Class: EntryMigration

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/rails_log_converter/db/001_entry_migration.rb

Class Method Summary collapse

Class Method Details

.downObject



26
27
28
# File 'lib/rails_log_converter/db/001_entry_migration.rb', line 26

def self.down
  drop_table :entries
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/rails_log_converter/db/001_entry_migration.rb', line 2

def self.up
  create_table :entries do |t|
    t.string :controller,
             :action, 
             :ip, 
             :method, 
             :session_id, 
             :cookie_set, 
             :url
             
    t.integer :req_per_sec, 
              :html_code
              
    t.decimal :completed_time, 
              :database_time
              
    t.text    :parameters, :other
    
    t.datetime :date
              
             
  end
end