Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
https://berserker.town/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
469 B
17 lines
469 B
# frozen_string_literal: true
|
|
|
|
require 'rails/generators/active_record'
|
|
|
|
class PostDeploymentMigrationGenerator < Rails::Generators::NamedBase
|
|
source_root File.expand_path('templates', __dir__)
|
|
|
|
include Rails::Generators::Migration
|
|
|
|
def create_post_deployment_migration
|
|
migration_template 'migration.erb', "db/post_migrate/#{file_name}.rb"
|
|
end
|
|
|
|
def self.next_migration_number(path)
|
|
ActiveRecord::Generators::Base.next_migration_number(path)
|
|
end
|
|
end
|
|
|