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

Version Path
infopark_rails_connector-6.8.0.356.19698103 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.348.160665197 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.328.4a753fc lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.322.c003f11 lib/generators/rails_connector/comments/comments_generator.rb