Sha256: 7002d00f10623a4c43b55f13a473e787a93fd3250716bf51fa432477063780d1
Contents?: true
Size: 695 Bytes
Versions: 16
Compression:
Stored size: 695 Bytes
Contents
class AddConstraintsToEntryTemplates < ActiveRecord::Migration[5.2] def up change_column_null :pageflow_entry_templates, :account_id, false change_column_null :pageflow_entry_templates, :entry_type, false execute(<<-SQL) ALTER TABLE `pageflow_entry_templates` ADD UNIQUE `unique_index_entry_templates_account_entry_type`(`account_id`, `entry_type`); SQL end def down execute(<<-SQL) ALTER TABLE `pageflow_entry_templates` DROP INDEX `unique_index_entry_templates_account_entry_type`; SQL change_column_null :pageflow_entry_templates, :account_id, true change_column_null :pageflow_entry_templates, :entry_type, true end end
Version data entries
16 entries across 16 versions & 1 rubygems