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