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.10.9 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.8 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.7 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.6 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.4 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.6 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.3 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.2 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.1 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.5 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.10.0 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.4 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.3 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.2 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.1 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.9.0 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.8.6 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.8.5 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.8.4 db/migrate/20131209122644_create_foreman_tasks_locks.rb
foreman-tasks-0.8.3 db/migrate/20131209122644_create_foreman_tasks_locks.rb