Sha256: 2a03e2a04cfb7820fe7291155e2913066edf27c45d666f4bfd1c4e1c34b8ff21

Contents?: true

Size: 442 Bytes

Versions: 37

Compression:

Stored size: 442 Bytes

Contents

class CreateTriggerings < ActiveRecord::Migration
  def up
    create_table :foreman_tasks_triggerings do |t|
      t.string :mode, null: false
      t.datetime :start_at
      t.datetime :start_before
    end

    change_table :foreman_tasks_recurring_logics do |t|
      t.integer :triggering_id
    end
  end

  def down
    drop_table :foreman_tasks_triggerings
    remove_column :foreman_tasks_recurring_logics, :triggering_id
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
foreman-tasks-0.10.9 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.8 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.7 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.6 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.4 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.6 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.3 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.2 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.1 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.5 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.10.0 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.4 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.3 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.2 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.1 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.9.0 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.8.6 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.8.5 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.8.4 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.8.3 db/migrate/20151112152108_create_triggerings.rb