winton / acts_as_archive

Don't delete your records, move them to a different table
MIT License
372 stars 87 forks source link

tables created but no class files #41

Closed beecourt closed 12 years ago

beecourt commented 12 years ago

I am using rails 3.0.7 with a_a_a 0.4.1 and MySQL. There are ":dependent => :destroy" annotations in my models. When I run rake db:migrate new tables will be created with "deleted_at" fields, but no new class files are created. Also there are no new/renamed id fields for the altered dependencies. Shouldn't there be any?

Example:

Account model:

class Account < ActiveRecord::Base
has_many :invoices, :dependent => :destroy

config/acts_as_archive.yaml:

Account:
  - class: Account::Archive
    table: archived_accounts
Invoice:
  - class: Invoice::Archive
    table: archived_invoices
johncant commented 12 years ago

No, this is normal behaviour. The classes must be created dynamically somehow.