Sha256: 27c65df90ec6e45a1092668487aa2d87a9d526ce8e190bdc97762c670c0c4002
Contents?: true
Size: 595 Bytes
Versions: 5
Compression:
Stored size: 595 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' module Ropenlayer class MigrationGenerator < Rails::Generators::Base include Rails::Generators::Migration desc "Generates migration for Ropenlayers models" 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 def migration migration_template "migration.rb", File.join('db/migrate', "create_ropenlayer_structure.rb") end end end
Version data entries
5 entries across 5 versions & 1 rubygems