Class: CompleteJobFields
- Inherits:
-
Debci::DB::LEGACY_MIGRATION
- Object
- CompleteJobFields
- Defined in:
- lib/debci/db/migrations/20180809232852_complete_job_fields.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/debci/db/migrations/20180809232852_complete_job_fields.rb', line 12 def down remove_column :jobs, :date remove_column :jobs, :duration_seconds remove_column :jobs, :last_pass_date remove_column :jobs, :last_pass_version remove_column :jobs, :message remove_column :jobs, :previous_status end |
#up ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/debci/db/migrations/20180809232852_complete_job_fields.rb', line 3 def up add_column :jobs, :date, :datetime add_column :jobs, :duration_seconds, :integer add_column :jobs, :last_pass_date, :datetime add_column :jobs, :last_pass_version, :string add_column :jobs, :message, :string add_column :jobs, :previous_status, :string end |