Sortable issues

This commit is contained in:
VSizov 2011-10-15 19:56:53 +03:00
parent 4e063deaa9
commit dd833d28ad
16 changed files with 59 additions and 16 deletions

View file

@ -3,7 +3,7 @@ require "grit"
class Project < ActiveRecord::Base
belongs_to :owner, :class_name => "User"
has_many :issues, :dependent => :destroy
has_many :issues, :dependent => :destroy, :order => "position"
has_many :users_projects, :dependent => :destroy
has_many :users, :through => :users_projects
has_many :notes, :dependent => :destroy