Skip to content
Browse files

update AR::Schema docs [ci skip]

  • Loading branch information...
1 parent 20e61a6 commit 9bc16d0da2f699a7f67f243af4ff5b6b5d993c4a @carlos21 carlos21 committed Dec 1, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 activerecord/lib/active_record/schema.rb
View
7 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?

0 comments on commit 9bc16d0

Please sign in to comment.
Something went wrong with that request. Please try again.