Sha256: 6cf6fc9ca55571b121298108824c661ad8a45c77ebd52bda35e0aca7a74a5445
Contents?: true
Size: 574 Bytes
Versions: 24
Compression:
Stored size: 574 Bytes
Contents
require "rails/generators/active_record" module RailsConnector module Generators class CommentsGenerator < 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 "Create a migration to create comments in your application." def generate_migration migration_template 'migration.rb', 'db/migrate/create_comments.rb' end end end end
Version data entries
24 entries across 24 versions & 1 rubygems