Sha256: 6b9b4f436a13722ac9dd92ad42a393662455cede9d68b4673996084e3cc98bab

Contents?: true

Size: 589 Bytes

Versions: 8

Compression:

Stored size: 589 Bytes

Contents

require 'rails/generators'

module Stitches
  class AddDisabledAtToApiClientsGenerator < 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 includes the `disabled_at` field"
    def update_api_clients_table
      migration_template "db/migrate/add_disabled_at_to_api_clients.rb", "db/migrate/add_disabled_at_to_api_clients.rb"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stitches-5.0.0 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-5.0.0.RC1 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-4.2.2 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-4.2.1 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-4.2.0 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-4.2.0.RC3 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-4.2.0.RC2 lib/stitches/add_disabled_at_to_api_clients_generator.rb
stitches-4.2.0.RC1 lib/stitches/add_disabled_at_to_api_clients_generator.rb