Class: SpreeEssentials::Generators::BlogGenerator

Inherits:
EssentialsBase
  • Object
show all
Defined in:
lib/generators/spree_essentials/blog_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_migrationsObject



10
11
12
13
14
15
16
# File 'lib/generators/spree_essentials/blog_generator.rb', line 10

def copy_migrations
  migration_template "create_posts.rb",                 "db/migrate/create_posts.rb"
  migration_template "create_post_products.rb",         "db/migrate/create_post_products.rb"
  migration_template "acts_as_taggable_on_posts.rb",    "db/migrate/acts_as_taggable_on_posts.rb"
  migration_template "create_post_categories.rb",       "db/migrate/create_post_categories.rb"
  migration_template "create_post_categories_posts.rb", "db/migrate/create_post_categories_posts.rb"
end