Sha256: a4e64d853a942285b95afb943f817b88bd4390cfa0ae56e76ec55e0992c5111e
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' require 'rails/generators/active_record' module Kentouzu class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc 'Generates (but does not run) a migration to add a drafts table.' def create_migration_file migration_template 'create_drafts.rb', 'db/migrate/create_drafts.rb' end def self.next_migration_number(dirname) ActiveRecord::Generators::Base.next_migration_number(dirname) end end end
Version data entries
5 entries across 5 versions & 1 rubygems