mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Adds title where needed.
This commit is contained in:
parent
2b7f08428c
commit
0ebdc26cae
2 changed files with 11 additions and 6 deletions
|
@ -1,6 +1,8 @@
|
||||||
require 'active_support/core_ext/object/blank'
|
require 'active_support/core_ext/object/blank'
|
||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
|
# = Active Record Schema
|
||||||
|
#
|
||||||
# Allows programmers to programmatically define a schema in a portable
|
# Allows programmers to programmatically define a schema in a portable
|
||||||
# DSL. This means you can define tables, indexes, etc. without using SQL
|
# DSL. This means you can define tables, indexes, etc. without using SQL
|
||||||
# directly, so your applications can more easily support multiple
|
# directly, so your applications can more easily support multiple
|
||||||
|
|
|
@ -2,6 +2,8 @@ require 'stringio'
|
||||||
require 'active_support/core_ext/big_decimal'
|
require 'active_support/core_ext/big_decimal'
|
||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
|
# = Active Record Schema Dumper
|
||||||
|
#
|
||||||
# This class is used to dump the database schema for some connection to some
|
# This class is used to dump the database schema for some connection to some
|
||||||
# output format (i.e., ActiveRecord::Schema).
|
# output format (i.e., ActiveRecord::Schema).
|
||||||
class SchemaDumper #:nodoc:
|
class SchemaDumper #:nodoc:
|
||||||
|
@ -39,13 +41,14 @@ module ActiveRecord
|
||||||
define_params = @version ? ":version => #{@version}" : ""
|
define_params = @version ? ":version => #{@version}" : ""
|
||||||
|
|
||||||
stream.puts <<HEADER
|
stream.puts <<HEADER
|
||||||
# This file is auto-generated from the current state of the database. Instead of editing this file,
|
# This file is auto-generated from the current state of the database. Instead
|
||||||
# please use the migrations feature of Active Record to incrementally modify your database, and
|
# of editing this file, please use the migrations feature of Active Record to
|
||||||
# then regenerate this schema definition.
|
# 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
|
# Note that this schema.rb definition is the authoritative source for your
|
||||||
# to create the application database on another system, you should be using db:schema:load, not running
|
# database schema. If you need to create the application database on another
|
||||||
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
# 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).
|
# 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.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
Loading…
Reference in a new issue