Sha256: 5cd05d59fab5d173965ec63a76f968a51933e7798d1df44a076faf3bc81e9ff1
Contents?: true
Size: 652 Bytes
Versions: 6
Compression:
Stored size: 652 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' class SocializationGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path(File.join('templates'), File.dirname(__FILE__)) def create_migration_file copy_file "cassandra/model_follow.rb", 'app/models/follow.rb' copy_file "cassandra/model_like.rb", 'app/models/like.rb' copy_file "cassandra/model_comment.rb", 'app/models/comment.rb' copy_file "cassandra/model_share.rb", 'app/models/share.rb' copy_file 'socialization_cassandra_migrations.rake', 'lib/tasks/socialization_cassandra_migrations.rake' end end
Version data entries
6 entries across 6 versions & 1 rubygems