Skip to content
This repository

Updated README with schema dump information #51

Merged
merged 1 commit into from over 1 year ago

2 participants

Ren Provey Diogo Biazus
Ren Provey
ren commented October 08, 2012

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

Diogo Biazus
Owner

Thanks for the pull request Ren!

Diogo Biazus diogob merged commit 03588cd into from November 01, 2012
Diogo Biazus diogob closed this November 01, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 08, 2012
Ren Provey Added information about config.active_record.schema_format = :sql for…
… reliable schema dumps.
e2a8fe4
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  README.md
12  README.md
Source Rendered
@@ -156,6 +156,18 @@ To avoid the above, make sure all named parameters are strings:
156 156
 
157 157
 Have fun.
158 158
 
  159
+Test Database
  160
+-------------
  161
+
  162
+To have hstore enabled when you load your database schema (as happens in rake db:test:prepare), you'll need to
  163
+uncomment or add the following line in config/application.rb
  164
+
  165
+    config.active_record.schema_format = :sql
  166
+
  167
+This will change your schema dumps from Ruby to SQL. If you're
  168
+unsure about the implications of this change, we suggest reading this
  169
+[Rails Guide](http://guides.rubyonrails.org/migrations.html#schema-dumping-and-you).
  170
+
159 171
 Help
160 172
 ----
161 173
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.