Sha256: 57fcced5a430fdfee50623f951fd1b71cd7185a3e76cece275195635ca672bc1
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true module Voting class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc 'creates Voting migration' def create_migration template 'db/migrate/create_voting_tables.rb', "db/migrate/#{timestamp}_create_voting_tables.rb" end private def timestamp Time.current.strftime '%Y%m%d%H%M%S' end end end
Version data entries
4 entries across 4 versions & 1 rubygems