Sha256: 63da63fbe5f0ffded7ef5e7be38b082090c68877bfce8c9a69dd67c23a97ed13

Contents?: true

Size: 389 Bytes

Versions: 7

Compression:

Stored size: 389 Bytes

Contents

class CreateTaskManagerCallables < ActiveRecord::Migration
  def change
    create_table :task_manager_callables do |t|
      t.belongs_to :callback, polymorphic: true
      t.belongs_to :target, polymorphic: true

      t.timestamps
    end

    add_index :task_manager_callables, [:callback_id, :callback_type]
    add_index :task_manager_callables, [:target_id, :target_type]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
task-manager-0.1.7 db/migrate/20121102150720_create_task_manager_callables.rb
task-manager-0.1.6 db/migrate/20121102150720_create_task_manager_callables.rb
task-manager-0.1.5 db/migrate/20121102150720_create_task_manager_callables.rb
task-manager-0.1.4 db/migrate/20121102150720_create_task_manager_callables.rb
task-manager-0.1.3 db/migrate/20121102150720_create_task_manager_callables.rb
task-manager-0.1.2 db/migrate/20121102150720_create_task_manager_callables.rb
task-manager-0.1.1 db/migrate/20121102150720_create_task_manager_callables.rb