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