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.8.2 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.8.1 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.8.0 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.20 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.19 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.18 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.17 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.16 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.15 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.14 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.13 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.12 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.11 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.10 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.9 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.8 db/migrate/20151112152108_create_triggerings.rb
foreman-tasks-0.7.7 db/migrate/20151112152108_create_triggerings.rb