Skip to content

Commit

Permalink
rake test runs, 3 errors related to table naming, probably very old t…
Browse files Browse the repository at this point in the history
…ests, close publiclab#81
  • Loading branch information
jywarren committed Apr 4, 2013
1 parent 2def48d commit 058dfba
Show file tree
Hide file tree
Showing 3 changed files with 2,092 additions and 55 deletions.
7 changes: 4 additions & 3 deletions app/models/drupal_main_image.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
class DrupalMainImage < ActiveRecord::Base
# attr_accessible :title, :body
set_table_name :content_field_main_image

self.table_name 'content_field_main_image'
self.primary_key = 'vid'

belongs_to :drupal_node, :foreign_key => 'vid'
belongs_to :drupal_file, :foreign_key => 'field_main_image_fid'
self.primary_key = 'vid'

end
Loading

0 comments on commit 058dfba

Please sign in to comment.