instance method
create_migration_file
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5Signature
create_migration_file()
No documentation comment.
Source
# File activerecord/lib/rails/generators/active_record/migration/migration_generator.rb, line 8
def create_migration_file
set_local_assigns!
migration_template "migration.rb", "db/migrate/#{file_name}.rb"
end
Defined in activerecord/lib/rails/generators/active_record/migration/migration_generator.rb line 8
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Generators::MigrationGenerator