Sha256: 51d36ee817455f9cbca3c398a5508d8798e111e07980191d88e4556444836d0b
Contents?: true
Size: 259 Bytes
Versions: 2
Compression:
Stored size: 259 Bytes
Contents
class AddEnabledToApiClients < ActiveRecord::Migration 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stitches-3.4.0 | lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb |
stitches-3.3.0 | lib/stitches/generator_files/db/migrate/add_enabled_to_api_clients.rb |