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