Rails gem developement coping resources to the application -
Rails gem developement coping resources to the application -
in gem (myengine.rb) have next code :
require "myengine/version" require "myengine/models/contact" require 'rails/generators' module myengine def self.generate_migration file_name= "migrationsrc.rb" src_path= "myengine/migration_files/"+file_name destination_path= "db/migrate/"+file_name // end end when phone call method generate_migration want gem re-create migration file db/migrate of application.
thanks help.
ruby-on-rails gem copy-paste database-migration
Comments
Post a Comment