Sha256: 75707fc87b4f8dac6424f0b8b5bccd2d7b75988eb5ae569f719b8f3ddb87f0e4
Contents?: true
Size: 571 Bytes
Versions: 26
Compression:
Stored size: 571 Bytes
Contents
require 'rails/generators' module Stitches class AddEnabledToApiClientsGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root(File.expand_path(File.join(File.dirname(__FILE__),"generator_files"))) def self.next_migration_number(path) Time.now.utc.strftime("%Y%m%d%H%M%S") end desc "Upgrade your api_clients table so it uses the `enabled` field" def update_api_clients_table migration_template "db/migrate/add_enabled_to_api_clients.rb", "db/migrate/add_enabled_to_api_clients.rb" end end end
Version data entries
26 entries across 26 versions & 1 rubygems