mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
update AR::Schema docs [ci skip]
This commit is contained in:
parent
20e61a6d2b
commit
9bc16d0da2
1 changed files with 6 additions and 1 deletions
|
@ -29,11 +29,16 @@ module ActiveRecord
|
|||
# ActiveRecord::Schema is only supported by database adapters that also
|
||||
# support migrations, the two features being very similar.
|
||||
class Schema < Migration
|
||||
|
||||
# Returns the migrations paths.
|
||||
#
|
||||
# ActiveRecord::Schema.new.migrations_paths
|
||||
# # => ["db/migrate"] # Rails migration path by default.
|
||||
def migrations_paths
|
||||
ActiveRecord::Migrator.migrations_paths
|
||||
end
|
||||
|
||||
def define(info, &block)
|
||||
def define(info, &block) # :nodoc:
|
||||
instance_eval(&block)
|
||||
|
||||
unless info[:version].blank?
|
||||
|
|
Loading…
Reference in a new issue