Sha256: 3104e5f6902d17692cc98a302896c7bf2420589bb62ceeebc2d5f40a13a2f912
Contents?: true
Size: 802 Bytes
Versions: 6
Compression:
Stored size: 802 Bytes
Contents
########################################### require 'rails/generators/active_record' ########################################### #Migration Generator (for adding errors table) #Ref: https://github.com/plataformatec/devise/blob/master/lib/generators/active_record/devise_generator.rb module ExceptionHandler class MigrationGenerator < ActiveRecord::Generators::Base #Name - from http://old.thoughtsincomputation.com/posts/cgfr3-part-3-adding-a-generator argument :name, default: "migration" #Source of Migrations source_root File.expand_path("../../templates", __FILE__) ########################################### #Create Migration def create_errors_migration migration_template "create_table.rb", "db/migrate/create_errors.rb" end end end
Version data entries
6 entries across 6 versions & 1 rubygems