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

Version Path
stitches-5.0.0 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-5.0.0.RC1 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.2.2 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.2.1 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.2.0 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.2.0.RC3 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.2.0.RC2 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.2.0.RC1 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.0.2 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.1.0RC2 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.0.1 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.0.0 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-4.0.0.RC1 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.8.3 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.8.2 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.8.1 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.8.0 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.7.3 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.7.2 lib/stitches/add_enabled_to_api_clients_generator.rb
stitches-3.7.0 lib/stitches/add_enabled_to_api_clients_generator.rb