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