Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no archive table is being created #49

Open
ragrawal opened this issue Oct 16, 2012 · 4 comments
Open

no archive table is being created #49

ragrawal opened this issue Oct 16, 2012 · 4 comments

Comments

@ragrawal
Copy link

Hi,

I have created the config file but after running migration, no archive table is created. I am using Rails 3.2 and ruby 1.9 and latest version of acts_as_archive. Based on some previous issues, I also added acts_as_archive to my original table but that also didn't help. Am I missing any critical step ?

Ritesh

@ghost
Copy link

ghost commented Feb 24, 2013

provide more information please if you can

@timscott
Copy link

I am also having this problem. In my Gemfile:

gem 'acts_as_archive'

In config/acts_as_archive.yml:

Consumer:
  - class: Consumer::Cancelled
    table: cancelled_consumers

When I run rake db:migrate there is no output and no table is created.

@timscott
Copy link

Upon further testing I can see that with the gem present, migrations are messed up. Specifically when I do something like this, for example:

rails g migration RemoveSoftDeleteFieldsFromConsumer cancelled cancelled_at

It generates a migration with this name:

_remove_soft_delete_fields_from_consumer.rb

Notice that the ID prefix is missing. So when running rake db:migrate the migration does not run.

Please, help. I would really love to use this gem instead of write it myself by hand. I spent some time looking through the code, and I'm not able to locate or follow the migration voodoo that the gem is doing, or else I would make a pull request myself.

@eef
Copy link

eef commented Nov 13, 2013

I am suffering from the same issue. Did you ever figure out why the migrations were not being created?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants