修正数据库表不存在错误
This commit is contained in:
parent
1c41cbd4b5
commit
a8d2c5789c
|
@ -59,10 +59,7 @@ class Project < ActiveRecord::Base
|
|||
:join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}",
|
||||
:association_foreign_key => 'custom_field_id'
|
||||
|
||||
#添加用户关注项目功能 fq
|
||||
has_many :watchers, :through => :watchers_of_projects, :class_name => 'User'
|
||||
has_many :watchers_of_projects, :class_name => 'WatchersOfProjects'
|
||||
#end
|
||||
|
||||
|
||||
has_many :tags, :through => :project_tags, :class_name => 'Tag'
|
||||
has_many :project_tags, :class_name => 'ProjectTags'
|
||||
|
|
|
@ -75,20 +75,8 @@ class User < Principal
|
|||
has_one :rss_token, :class_name => 'Token', :conditions => "action='feeds'"
|
||||
has_one :api_token, :class_name => 'Token', :conditions => "action='api'"
|
||||
belongs_to :auth_source
|
||||
|
||||
# 添加用户关注项目功能 fq
|
||||
has_many :projects, :through => :watchers_of_projects
|
||||
has_many :watchers_of_projects, :class_name => 'WatchersOfProjects'
|
||||
# end of
|
||||
|
||||
# 添加关注用户功能 fq
|
||||
has_many :watchers_of_users
|
||||
# end of
|
||||
|
||||
#添加用户留言功能 fq
|
||||
has_many :messages_for_users
|
||||
#end
|
||||
#####fq
|
||||
|
||||
#####fq
|
||||
has_many :jours, :class_name => 'JournalsForMessage', :dependent => :destroy
|
||||
has_many :bids, :foreign_key => 'author_id', :dependent => :destroy
|
||||
has_many :journals_for_messages, :as => :jour, :dependent => :destroy
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in New Issue