Sha256: 1135080c19eb8174e60947157903b1cff8f7f8a907c8b5daa33e6144c49e826f
Contents?: true
Size: 623 Bytes
Versions: 12
Compression:
Stored size: 623 Bytes
Contents
class AddConstraintsToMostRecentForUserImportFileTransitions < ActiveRecord::Migration[4.2] disable_ddl_transaction! def up add_index :user_import_file_transitions, %i[user_import_file_id most_recent], unique: true, where: "most_recent", name: "index_user_import_file_transitions_parent_most_recent" # , algorithm: :concurrently change_column_null :user_import_file_transitions, :most_recent, false end def down remove_index :user_import_file_transitions, name: "index_user_import_file_transitions_parent_most_recent" change_column_null :user_import_file_transitions, :most_recent, true end end
Version data entries
12 entries across 12 versions & 2 rubygems