Class: PimpLog
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- PimpLog
- Defined in:
- lib/skynet-core/db/migrate/002_pimp_log.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/skynet-core/db/migrate/002_pimp_log.rb', line 14 def self.down add_column :logs, :pid, :integer remove_column :logs, :picked remove_column :logs, :found remove_column :logs, :started_at remove_column :logs, :finished_at end |
.up ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/skynet-core/db/migrate/002_pimp_log.rb', line 6 def self.up remove_column :logs, :pid add_column :logs, :picked, :integer add_column :logs, :found, :integer add_column :logs, :started_at, :datetime add_column :logs, :finished_at, :datetime end |