Sha256: 1f5fa82ef2e4ef4007e34a39249e78519eab963ed1c23858a4e4d1a9cb4764c1

Contents?: true

Size: 430 Bytes

Versions: 18

Compression:

Stored size: 430 Bytes

Contents

<% if Rails::VERSION::MAJOR >= 5 %>
class AddEnabledToApiClients < ActiveRecord::Migration[<%= Rails::VERSION::MAJOR %>.<%= Rails::VERSION::MINOR %>]
<% else %>
class AddEnabledToApiClients < ActiveRecord::Migration
<% end %>
  def change
    add_column :api_clients, :enabled, :bool, null: false, default: true
    remove_index :api_clients, [:name ] # existing one would be unique
    add_index :api_clients, [:name ]
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
stitches-4.2.0.RC2 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.2.0.RC1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.0.2 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.1.0RC2 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.0.1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.0.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.0.0.RC1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.8.3 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.8.2 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.8.1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.8.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.7.3 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.7.2 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.7.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.6.1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.6.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.6.0.RC1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-3.5.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb