Sha256: 1db7747d479c3710af68e5f2df71201d802cd70e749b7b5ab3cb8e17c3438bfb

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inter-0.0.1 lib/generators/inter/install_generator.rb