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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -