module TaskManager
  class Plan < ActiveRecord::Base
    serialize :data, ActiveRecord::Coders::Hstore

    attr_accessible :autocompletable, :data, :last_task_created_at, :name
  end
end

module TaskManager
  class Plan < ActiveRecord::Base
    has_many :assignables
    has_many :assignees, through: :assignables

    serialize :data, ActiveRecord::Coders::Hstore

    attr_accessible :autocompletable, :data, :last_task_created_at, :name

    validates :name, presence: true, uniqueness: true
  end
end

Set up associations between Plan and Assignable
Set up associations between Plan and Assignable
