class Hancock::Pages::MigrationsGenerator
Public Instance Methods
migrations()
click to toggle source
# File lib/generators/hancock/pages/migrations/migrations_generator.rb, line 10 def migrations if Hancock.active_record? %w(pages blocks).each do |table_name| migration_template "migration_#{table_name}.rb", "db/migrate/hancock_create_#{table_name}.rb" end end end