Sha256: f70ab4288d4c8cd51eb297fb83cc6d171fa7933d4b083ee292ba90fd19c33179
Contents?: true
Size: 411 Bytes
Versions: 4
Compression:
Stored size: 411 Bytes
Contents
require 'rails/generators/migration' class EditableAreasGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path("../templates", __FILE__) def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end def create_editable_areas_files migration_template "create_editable_areas.rb", "db/migrate/create_editable_areas.rb" end end
Version data entries
4 entries across 4 versions & 1 rubygems