Sha256: e3ee263ec3a2d36e38319ab0f3439746cbed0f2936733f6ae550c541aca778a1

Contents?: true

Size: 397 Bytes

Versions: 7

Compression:

Stored size: 397 Bytes

Contents

class CreateTaskManagerAssignables < ActiveRecord::Migration
  def change
    create_table :task_manager_assignables do |t|
      t.belongs_to :target, polymorphic: true
      t.belongs_to :assignee, polymorphic: true

      t.timestamps
    end

    add_index :task_manager_assignables, [:assignee_id, :assignee_type]
    add_index :task_manager_assignables, [: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/20121102142657_create_task_manager_assignables.rb
task-manager-0.1.6 db/migrate/20121102142657_create_task_manager_assignables.rb
task-manager-0.1.5 db/migrate/20121102142657_create_task_manager_assignables.rb
task-manager-0.1.4 db/migrate/20121102142657_create_task_manager_assignables.rb
task-manager-0.1.3 db/migrate/20121102142657_create_task_manager_assignables.rb
task-manager-0.1.2 db/migrate/20121102142657_create_task_manager_assignables.rb
task-manager-0.1.1 db/migrate/20121102142657_create_task_manager_assignables.rb