Skip to content

Commit

Permalink
Fixed: Error on db:migrate with table prefix set (#5335).
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3678 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Apr 17, 2010
1 parent e4e4b0f commit 2c0ce10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/principal.rb
Expand Up @@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

class Principal < ActiveRecord::Base
set_table_name 'users'
set_table_name "#{table_name_prefix}users#{table_name_suffix}"

has_many :members, :foreign_key => 'user_id', :dependent => :destroy
has_many :memberships, :class_name => 'Member', :foreign_key => 'user_id', :include => [ :project, :roles ], :conditions => "#{Project.table_name}.status=#{Project::STATUS_ACTIVE}", :order => "#{Project.table_name}.name"
Expand Down

0 comments on commit 2c0ce10

Please sign in to comment.