Sha256: 75f61d9bedb971ddbda7c298fb3e46b8be43eea89b28ffd106acde114987178a

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

class AddEnabledToApiClients < ActiveRecord::Migration<% if Rails::VERSION::MAJOR >= 5 %>[<%= Rails::VERSION::MAJOR %>.<%= Rails::VERSION::MINOR %>]<% 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

6 entries across 6 versions & 1 rubygems

Version Path
stitches-5.0.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-5.0.0.RC1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.2.2 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.2.1 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.2.0 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb
stitches-4.2.0.RC3 lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb