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.9.1.3.22208381 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.9.0.3.197272233 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.3.174.51542603 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.3.115.227021242 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.3.73.75172665 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.3.2.153416031 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.3.67.110847540 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.3.1.23895778 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.2.36.82613853 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.2.7.128454143 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.1.26.236500544 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.1 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.539.93842523 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.529.114081979 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.518.30999728 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.515.34928522 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.498.46559598 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.480.261594408 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.444.171626367 lib/generators/rails_connector/comments/comments_generator.rb
infopark_rails_connector-6.8.0.406.131718077 lib/generators/rails_connector/comments/comments_generator.rb