Defect #6996 ยป migrate_from_trac.patch
| lib/tasks/migrate_from_trac.rake (working copy) | ||
|---|---|---|
|
has_many :attachments, :class_name => "TracAttachment",
|
||
|
:finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" +
|
||
|
" WHERE #{TracMigrate::TracAttachment.table_name}.type = 'ticket'" +
|
||
|
' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{id}\''
|
||
|
' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{TracMigrate::TracAttachment.connection.quote_string(id.to_s)}\''
|
||
|
has_many :customs, :class_name => "TracTicketCustom", :foreign_key => :ticket
|
||
|
|
||
|
def ticket_type
|
||
| ... | ... | |
|
has_many :attachments, :class_name => "TracAttachment",
|
||
|
:finder_sql => "SELECT DISTINCT attachment.* FROM #{TracMigrate::TracAttachment.table_name}" +
|
||
|
" WHERE #{TracMigrate::TracAttachment.table_name}.type = 'wiki'" +
|
||
|
' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{id}\''
|
||
|
' AND #{TracMigrate::TracAttachment.table_name}.id = \'#{TracMigrate::TracAttachment.connection.quote_string(id.to_s)}\''
|
||
|
|
||
|
def self.columns
|
||
|
# Hides readonly Trac field to prevent clash with AR readonly? method (Rails 2.0)
|
||