Class: ActiveRecordContentBlob::MigrationGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- ActiveRecordContentBlob::MigrationGenerator
- Defined in:
- lib/generators/content_blob_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#copy_files ⇒ Object
Copies the migration template to db/migrate.
Class Method Details
.next_migration_number(path) ⇒ Object
12 13 14 |
# File 'lib/generators/content_blob_generator.rb', line 12 def self.next_migration_number(path) ActiveRecord::Generators::Base.next_migration_number(path) end |
Instance Method Details
#copy_files ⇒ Object
Copies the migration template to db/migrate.
16 17 18 |
# File 'lib/generators/content_blob_generator.rb', line 16 def copy_files migration_template 'create_content_blobs.rb', 'db/migrate/create_content_blobs_migration.rb' end |