public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Set the record straight on the purpose and utility of db/schema.rb

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8124 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Fri Nov 09 14:08:52 -0800 2007
commit  0f2c6302a19abce498d6cdbd44df0131c51fc8a3
tree    f8ecbe80d968f28b4d45d6682ff1e9999c6d4705
parent  2e12afaefeb0fe3907dd0a8578a620835a1ea452
...
37
38
39
40
41
 
 
42
 
 
 
 
 
 
 
43
44
45
...
37
38
39
 
 
40
41
42
43
44
45
46
47
48
49
50
51
52
0
@@ -37,9 +37,16 @@ module ActiveRecord
0
         define_params = @info ? ":version => #{@info['version']}" : ""
0
 
0
         stream.puts <<HEADER
0
-# This file is autogenerated. Instead of editing this file, please use the
0
-# migrations feature of ActiveRecord to incrementally modify your database, and
0
+# This file is auto-generated from the current state of the database. Instead of editing this file, 
0
+# please use the migrations feature of ActiveRecord to incrementally modify your database, and
0
 # then regenerate this schema definition.
0
+#
0
+# Note that this schema.rb definition is the authoritative source for your database schema. If you need
0
+# to create the application database on another system, you should be using db:schema:load, not running
0
+# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
0
+# you'll amass, the slower it'll run and the greater likelihood for issues).
0
+#
0
+# It's strongly recommended to check this file into your version control system.
0
 
0
 ActiveRecord::Schema.define(#{define_params}) do
0
 

Comments