Sha256: 1b7666ee55774e1bb4caebd9e56196844dd492477f6f85d00f0745a144e99fbc
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
module RailsKindeditor class MigrationGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc "Copy migration to your application." def copy_migration_file migration_template "migration/migration.rb", "db/migrate/create_kindeditor_assets.rb" end def self.next_migration_number(dirname) if ActiveRecord::Base.timestamped_migrations Time.now.utc.strftime("%Y%m%d%H%M%S") else "%.3d" % (current_migration_number(dirname) + 1) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems