class Polypaperclip::Generators::MigrationGenerator
shamelessly addapted from Sutto’s excellent slugged library: github.com/Sutto/slugged
Public Class Methods
source_root()
click to toggle source
# File lib/generators/migration_generator.rb, line 7 def self.source_root @_ps_source_root ||= File.expand_path("templates", File.dirname(__FILE__)) end
Public Instance Methods
create_migration_file()
click to toggle source
# File lib/generators/migration_generator.rb, line 19 def create_migration_file migration_template "migration.erb", "db/migrate/create_polypaperclip_attachments_table.rb" end