aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorCarlos Duclos <darkzeratul64@gmail.com>2012-12-01 14:49:45 -0500
committerCarlos Duclos <darkzeratul64@gmail.com>2012-12-01 14:49:57 -0500
commit9bc16d0da2f699a7f67f243af4ff5b6b5d993c4a (patch)
tree91dd255102d7877f655714424003ad08a927b727 /activerecord/lib
parent20e61a6d2b8fe64421af1c1294e440a0933a0193 (diff)
downloadrails-9bc16d0da2f699a7f67f243af4ff5b6b5d993c4a.tar.gz
rails-9bc16d0da2f699a7f67f243af4ff5b6b5d993c4a.tar.bz2
rails-9bc16d0da2f699a7f67f243af4ff5b6b5d993c4a.zip
update AR::Schema docs [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/schema.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb
index eaa4aa7086..3259dbbd80 100644
--- a/activerecord/lib/active_record/schema.rb
+++ b/activerecord/lib/active_record/schema.rb
@@ -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?