Sha256: 50de53d65b0ae8963a43f65f9147986a98058f8f363f4720a93d27afde4a1a48
Contents?: true
Size: 534 Bytes
Versions: 4
Compression:
Stored size: 534 Bytes
Contents
require 'rails/generators' module S3Multipart class InstallNewMigrationsGenerator < Rails::Generators::Base desc "Generates the migrations necessary when updating the gem to the latest version" source_root File.expand_path("../templates", __FILE__) def create_latest_migrations copy_file "add_size_column_to_s3_multipart_uploads.rb", "db/migrate/#{migration_time}_add_size_to_s3_multipart_uploads.rb" end private def migration_time Time.now.strftime("%Y%m%d%H%M%S") end end end
Version data entries
4 entries across 4 versions & 1 rubygems