module Inter module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "Installs Inter migrations" def copy_migrations time = Time.now.strftime("%Y%m%d%H%M%S") template "create_interactions.rb", "db/migrate/#{time}_create_interactions.rb" puts "Migrations completed. Please run `rake db:migrate` to finish the instalation" end end end end