Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated README with schema dump information #51

Merged
merged 1 commit into from

2 participants

@ren
ren commented

Added information about config.active_record.schema_format = :sql for reliable schema dumps for testing and reliable schema dumps in general.

@diogob
Owner

Thanks for the pull request Ren!

@diogob diogob merged commit 03588cd into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 8, 2012
  1. @ren

    Added information about config.active_record.schema_format = :sql for…

    ren authored
    … reliable schema dumps.
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
12 README.md
@@ -156,6 +156,18 @@ To avoid the above, make sure all named parameters are strings:
Have fun.
+Test Database
+-------------
+
+To have hstore enabled when you load your database schema (as happens in rake db:test:prepare), you'll need to
+uncomment or add the following line in config/application.rb
+
+ config.active_record.schema_format = :sql
+
+This will change your schema dumps from Ruby to SQL. If you're
+unsure about the implications of this change, we suggest reading this
+[Rails Guide](http://guides.rubyonrails.org/migrations.html#schema-dumping-and-you).
+
Help
----
Something went wrong with that request. Please try again.