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