Sha256: 09feae3008eb13e1deeddfc8d9a4b862362941f1921552e967688d78930bb825

Contents?: true

Size: 408 Bytes

Versions: 85

Compression:

Stored size: 408 Bytes

Contents

class CreateForemanTasksLocks < ActiveRecord::Migration
  def change
    create_table :foreman_tasks_locks do |t|
      t.string :task_id, index: true, null: false
      t.string :name, index: true, null: false
      t.string :resource_type, index: true
      t.integer :resource_id
      t.boolean :exclusive, index: true
    end
    add_index :foreman_tasks_locks, [:resource_type, :resource_id]
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
foreman-tasks-0.7.3 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.7.2 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.7.1 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.7.0 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.15 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.14 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.13 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.12 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.11 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.10 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.9 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.8 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.7 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.6 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.5 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.4 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.3 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.2 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.1 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.6.0 db/migrate/20131209122644_create_foreman_tasks_locks.rb