From c183309a10ca0684a32063b4177f49c05b67d813 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 1 Feb 2011 13:27:45 -0500 Subject: [PATCH] outline the installation process for rails a bit more --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c24c1cd..86e45e8 100644 --- a/README.md +++ b/README.md @@ -51,10 +51,18 @@ Article: It is expected that neither the archive class or archive table exist yet. ActsAsArchive will create these automatically. +Override ActiveRecord +---------------- +
+class Article < ActiveRecord::Base
+  acts_as_archive
+end
+
+ Migrate ------- -Run rake db:migrate. Your archive table is created automatically. +Run rake db:migrate. Your archive table is created automatically. (There will be no output -- this is normal) That's it! ---------- @@ -127,4 +135,4 @@ This copies all records with non-null deleted_at values to the arch Running specs ------------- -There is a [wiki entry](https://github.com/winton/acts_as_archive/wiki/Running-Specs) that describes the development setup in-depth. \ No newline at end of file +There is a [wiki entry](https://github.com/winton/acts_as_archive/wiki/Running-Specs) that describes the development setup in-depth.