class Enjoy::News::Migrations::InstallGenerator
Public Instance Methods
install()
click to toggle source
# File lib/generators/enjoy/news/migrations/migration_generator.rb, line 10 def install if Enjoy::News.active_record? %w(news).each do |table_name| migration_template "migration_#{table_name}.rb", "db/migrate/enjoy_news_create_#{table_name}.rb" end end end