Sha256: 9f18edc2452c9c62f35ab3ab4cfa378a5e3ae8780cec402d216d8e6ca2dbd11c
Contents?: true
Size: 530 Bytes
Versions: 19
Compression:
Stored size: 530 Bytes
Contents
require "rails/generators/active_record" module Disco module Generators class RecommendationGenerator < Rails::Generators::Base include ActiveRecord::Generators::Migration source_root File.join(__dir__, "templates") def copy_migration migration_template "migration.rb", "db/migrate/create_disco_recommendations.rb", migration_version: migration_version end def migration_version "[#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}]" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems