Sha256: 578f10a781309c960f35bf9a285bab1c959e91c7119da114a360e9ae4a8d8ebe

Contents?: true

Size: 220 Bytes

Versions: 2

Compression:

Stored size: 220 Bytes

Contents

class ArticleArchive < ActiveRecord::Base
  has_many :comments, :class_name => 'CommentArchive', :foreign_key => 'article_id'
  before_move :Article do
    comments.each { |c| c.move_to(Comment, move_options) }
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mover_postgres-0.3.6 spec/fixtures/article_archive.rb
mover-0.3.6 spec/fixtures/article_archive.rb