Sha256: fb6f01bc55ce17cf9aebe83c87eaa0a2127883ad06ca99708d4114b21b152373
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'rails/generators/migration' module FlexibleAccessibility module Generators class InstallGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc "Add the migrations" def self.next_migration_number(path) unless @prev_migration_nr @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i else @prev_migration_nr += 1 end @prev_migration_nr.to_s end def copy_migrations migration_template "create_access_rules.rb", "db/migrate/create_access_rules.rb" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexible_accessibility-0.3.1 | lib/generators/flexible_accessibility/install/install_generator.rb |