lib/souls/cli/db/create_migration.rb in souls-2.0.4 vs lib/souls/cli/db/create_migration.rb in souls-3.0.0
- old
+ new
@@ -4,10 +4,9 @@
def create_migration(class_name)
pluralized_class_name = class_name.underscore.pluralize
singularized_class_name = class_name.underscore.singularize
SOULs::DB.new.invoke(:model, [singularized_class_name], {})
SOULs::DB.new.invoke(:rspec_model, [singularized_class_name], {})
- SOULs::DB.new.invoke(:model_rbs, [singularized_class_name], {})
SOULs::Painter.create_file("")
system("rake db:create_migration NAME=create_#{pluralized_class_name}")
file_path = Dir["db/migrate/*create_#{pluralized_class_name}.rb"].first
File.open(file_path, "w") do |f|
f.write(<<~TEXT)