From 25647f70215e38635d16038e71f47730f2717021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 13 Jul 2009 20:42:25 +0200 Subject: Add some attribute readers to migration module. --- railties/lib/generators/migration.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/lib/generators/migration.rb') diff --git a/railties/lib/generators/migration.rb b/railties/lib/generators/migration.rb index 2eb7c0a964..5596cc274c 100644 --- a/railties/lib/generators/migration.rb +++ b/railties/lib/generators/migration.rb @@ -5,6 +5,11 @@ module Rails # just by implementing the next migration number method. # module Migration + def self.included(base) #:nodoc: + base.send :attr_reader, :migration_number, + :migration_file_name, + :migration_class_name + end # Creates a migration template at the given destination. The difference # to the default template method is that the migration number is appended -- cgit v1.2.3