Sha256: d0371fb77bdb5d3fd08d84f710750e979aeaeddb4fec40b38b01f860cb5eda44
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 Bytes
Contents
require 'rails/generators' class SanteyViewGenerator < Rails::Generators::Base include Rails::Generators::Migration def self.source_root @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) end def self.next_migration_number(dirname) Time.now.strftime("%Y%m%d%H%M%S") end # copy migrations to db/migrate def install_migrations migration_template "migrations/viewings.rb", File.join('db/migrate', "viewings.rb") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
santey_view-0.2.0 | lib/generators/santey_view_generator.rb |
santey_view-0.1.0 | lib/generators/santey_view_generator.rb |