Sha256: fdcb40bba287222be56f3bcb77aa3b648012c629f2dbd3675965c17215746bda
Contents?: true
Size: 478 Bytes
Versions: 4
Compression:
Stored size: 478 Bytes
Contents
class SocializationGenerator < Rails::Generator::Base def manifest record do |m| m.template 'model_follow.rb', 'app/models/follow.rb' m.template 'model_like.rb', 'app/models/like.rb' m.migration_template 'migration_follows.rb', 'db/migrate', :migration_file_name => 'create_follows' sleep 1 # force unique migration timestamp m.migration_template 'migration_likes.rb', 'db/migrate', :migration_file_name => 'create_likes' end end end
Version data entries
4 entries across 4 versions & 1 rubygems