Sha256: d02b25255d5dd903af2815e0fa2b045c7d299deb37f24b579285da1966d69308
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 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" copy_file "add_context_column_to_s3_multipart_uploads.rb", "db/migrate/#{migration_time}_add_context_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3_multipart-0.0.10.6 | lib/generators/s3_multipart/install_new_migrations_generator.rb |