diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-13 20:42:25 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-13 20:42:25 +0200 |
commit | 25647f70215e38635d16038e71f47730f2717021 (patch) | |
tree | b32383b3b2116e5078e3d4ccb821d0d255661bd7 /railties/lib/generators/migration.rb | |
parent | b9f4ea7198aadaeaaf6761316f0d3c96e73e4753 (diff) | |
download | rails-25647f70215e38635d16038e71f47730f2717021.tar.gz rails-25647f70215e38635d16038e71f47730f2717021.tar.bz2 rails-25647f70215e38635d16038e71f47730f2717021.zip |
Add some attribute readers to migration module.
Diffstat (limited to 'railties/lib/generators/migration.rb')
-rw-r--r-- | railties/lib/generators/migration.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |