Sha256: c9fcac46403e7d7b518726e9636a9ff60c12ed2330af6f09a709c0c79134f9e9
Contents?: true
Size: 526 Bytes
Versions: 38
Compression:
Stored size: 526 Bytes
Contents
require 'rails/generators' require "rails/generators/active_record" # This generator adds a migration for the {FriendlyId::History # FriendlyId::History} addon. class FriendlyIdGenerator < Rails::Generators::Base include Rails::Generators::Migration extend ActiveRecord::Generators::Migration source_root File.expand_path('../../friendly_id', __FILE__) # Copies the migration template to db/migrate. def copy_files(*args) migration_template 'migration.rb', 'db/migrate/create_friendly_id_slugs.rb' end end
Version data entries
38 entries across 33 versions & 4 rubygems