aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-17 12:53:38 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-17 14:26:34 -0800
commit8b2f801ed8690dcbc61d62e6b3518efaac70a4a4 (patch)
tree594eb88747964b1d96109d81cb7912ee74ef6b42 /activerecord/lib/active_record/schema.rb
parentfe2f168d40385a0412f41c1a2a44a5536cada8df (diff)
downloadrails-8b2f801ed8690dcbc61d62e6b3518efaac70a4a4.tar.gz
rails-8b2f801ed8690dcbc61d62e6b3518efaac70a4a4.tar.bz2
rails-8b2f801ed8690dcbc61d62e6b3518efaac70a4a4.zip
converted migrations to support instance methods
Diffstat (limited to 'activerecord/lib/active_record/schema.rb')
-rw-r--r--activerecord/lib/active_record/schema.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb
index c1bc3214ea..a621248cc3 100644
--- a/activerecord/lib/active_record/schema.rb
+++ b/activerecord/lib/active_record/schema.rb
@@ -30,9 +30,7 @@ module ActiveRecord
# ActiveRecord::Schema is only supported by database adapters that also
# support migrations, the two features being very similar.
class Schema < Migration
- private_class_method :new
-
- def self.migrations_path
+ def migrations_path
ActiveRecord::Migrator.migrations_path
end
@@ -48,7 +46,7 @@ module ActiveRecord
# ...
# end
def self.define(info={}, &block)
- instance_eval(&block)
+ new.instance_eval(&block)
unless info[:version].blank?
initialize_schema_migrations_table