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

Hi there #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 10 additions & 2 deletions README.md
Expand Up @@ -51,10 +51,18 @@ Article:


It is expected that neither the archive class or archive table exist yet. <code>ActsAsArchive</code> will create these automatically. It is expected that neither the archive class or archive table exist yet. <code>ActsAsArchive</code> will create these automatically.


Override ActiveRecord
----------------
<pre>
class Article &lt; ActiveRecord::Base
acts_as_archive
end
</pre>

Migrate Migrate
------- -------


Run <code>rake db:migrate</code>. Your archive table is created automatically. Run <code>rake db:migrate</code>. Your archive table is created automatically. (There will be no output -- this is normal)


That's it! That's it!
---------- ----------
Expand Down Expand Up @@ -127,4 +135,4 @@ This copies all records with non-null <code>deleted_at</code> values to the arch
Running specs Running specs
------------- -------------


There is a [wiki entry](https://github.com/winton/acts_as_archive/wiki/Running-Specs) that describes the development setup in-depth. There is a [wiki entry](https://github.com/winton/acts_as_archive/wiki/Running-Specs) that describes the development setup in-depth.