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