aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-11-09 22:08:52 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-11-09 22:08:52 +0000
commit0f2c6302a19abce498d6cdbd44df0131c51fc8a3 (patch)
treef8ecbe80d968f28b4d45d6682ff1e9999c6d4705 /activerecord/lib/active_record
parent2e12afaefeb0fe3907dd0a8578a620835a1ea452 (diff)
downloadrails-0f2c6302a19abce498d6cdbd44df0131c51fc8a3.tar.gz
rails-0f2c6302a19abce498d6cdbd44df0131c51fc8a3.tar.bz2
rails-0f2c6302a19abce498d6cdbd44df0131c51fc8a3.zip
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
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/schema_dumper.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb
index 618961b106..286306874e 100644
--- a/activerecord/lib/active_record/schema_dumper.rb
+++ b/activerecord/lib/active_record/schema_dumper.rb
@@ -37,9 +37,16 @@ module ActiveRecord
define_params = @info ? ":version => #{@info['version']}" : ""
stream.puts <<HEADER
-# This file is autogenerated. Instead of editing this file, please use the
-# migrations feature of ActiveRecord to incrementally modify your database, and
+# This file is auto-generated from the current state of the database. Instead of editing this file,
+# please use the migrations feature of ActiveRecord to incrementally modify your database, and
# then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your database schema. If you need
+# to create the application database on another system, you should be using db:schema:load, not running
+# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(#{define_params}) do