Sha256: 2318847f8197e62ecb356568c8d8690aa328eb013d6024a4473b61964c120bce
Contents?: true
Size: 316 Bytes
Versions: 177
Compression:
Stored size: 316 Bytes
Contents
class AddUniqueKeyToAddresses < ActiveRecord::Migration[5.0] def change add_column :addresses, :street_3, :string rename_column :addresses, :city, :town remove_index :addresses, [:addressable_type, :addressable_id] add_index :addresses, [:addressable_type, :addressable_id], unique: true end end
Version data entries
177 entries across 177 versions & 1 rubygems