Sha256: 78b7c6a20dd1e9cf9d4d3e90ae8d1dc82adc1d418f917533a9ee8ef8a4f12480
Contents?: true
Size: 586 Bytes
Versions: 24
Compression:
Stored size: 586 Bytes
Contents
require "rails/generators/active_record" module RailsConnector module Generators class RatingsGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end desc "Copy files to your application and create a migration to create ratings." def generate_migration migration_template 'migration.rb', 'db/migrate/create_ratings.rb' end end end end
Version data entries
24 entries across 24 versions & 1 rubygems