Skip to content

Commit

Permalink
Include installation, migrations to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mtodd committed Jan 25, 2011
1 parent 998be18 commit db5c522
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Readme.textile
Expand Up @@ -13,6 +13,25 @@ end
Model.table_name #=> "foos_2011_01_25"
</code></pre>

h2. Installation

Depends on ActiveRecord. Works with both versions 2.3.10 and 3.0.3.

Install the gem with:
<code>gem install activerecord-table_version</code>

Or, in your Gemfile:
<code>gem "activerecord-table_version", "~> 0.0.1"</code>

If you're on an older version of Rails:
<code>config.gem "activerecord-table_version", :version => "~> 0.0.1"</code>

h2. Migrations and Warning

In order to apply migrations, you will need to refer to the @table_name@ of the model directly.

This comment has been minimized.

Copy link
@duien

duien Jan 27, 2011

Full table name with version, I assume? It's a little unclear.


NOTE: This has not seen extensive production use and this may result in problems in practice. You've been warned.

h2. License and Copyright

The MIT License
Expand Down

0 comments on commit db5c522

Please sign in to comment.