Sha256: e169ba90ea077b761a536df532810eb53983c0ddf6c67e4f9034bc2c65d474e3
Contents?: true
Size: 576 Bytes
Versions: 6
Compression:
Stored size: 576 Bytes
Contents
module UserPreferences module Generators class InstallGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) def create_initializer_file template 'user_preferences.yml', "config/user_preferences.yml" end def copy_migrations migration_template 'migration.rb', "db/migrate/create_preferences.rb" end # TODO get rid of this def self.next_migration_number(dir) Time.now.utc.strftime("%Y%m%d%H%M%S") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems