aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema.rb
diff options
context:
space:
mode:
authorJosh Susser <josh@hasmanythrough.com>2010-12-01 11:56:21 -0800
committerJosh Susser <josh@hasmanythrough.com>2010-12-01 12:01:56 -0800
commita49de9811ab4cf39fbdb5a6941ee003b1e489184 (patch)
tree36f972c751e769e460acccc8f017408acf800bdc /activerecord/lib/active_record/schema.rb
parentb07c2c0fd3130bb69cf8d846e46762a7c3972107 (diff)
downloadrails-a49de9811ab4cf39fbdb5a6941ee003b1e489184.tar.gz
rails-a49de9811ab4cf39fbdb5a6941ee003b1e489184.tar.bz2
rails-a49de9811ab4cf39fbdb5a6941ee003b1e489184.zip
tests mostly pass
adjust to work with instance-based migations migrated_at can't be null why must people have last names? it's killing me!
Diffstat (limited to 'activerecord/lib/active_record/schema.rb')
-rw-r--r--activerecord/lib/active_record/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb
index 4b846f2e27..9a47fd3b84 100644
--- a/activerecord/lib/active_record/schema.rb
+++ b/activerecord/lib/active_record/schema.rb
@@ -55,7 +55,7 @@ module ActiveRecord
assume_migrated_upto_version(info[:version], schema.migrations_path) unless info[:version].blank?
end
- def self.migration(version, name="", options={})
+ def migration(version, name="", options={})
name, options = "", name if name.is_a?(Hash)
table = Arel::Table.new(ActiveRecord::Migrator.schema_migrations_table_name)