Sha256: 0e6e0918836fc9af5836bae93ae82cae522cfb79c1baf80a2c1bf2b125df5649
Contents?: true
Size: 597 Bytes
Versions: 21
Compression:
Stored size: 597 Bytes
Contents
#:stopdoc: 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
21 entries across 21 versions & 1 rubygems