mirror of
https://github.com/anteo/redmine_custom_workflows.git
synced 2026-01-26 00:04:20 +00:00
#358 Removing a not-null column
This commit is contained in:
parent
6b687fb833
commit
5cc9e6ab43
@ -24,6 +24,7 @@ class AlterCustomWorkflows < ActiveRecord::Migration[4.2]
|
|||||||
change_table(:custom_workflows, bulk: true) do |t|
|
change_table(:custom_workflows, bulk: true) do |t|
|
||||||
t.remove_index :project_id
|
t.remove_index :project_id
|
||||||
t.remove :project_id
|
t.remove :project_id
|
||||||
|
t.change_null :is_enabled, true # To remove a not-null constraint in SQL server
|
||||||
t.remove :is_enabled
|
t.remove :is_enabled
|
||||||
t.string :name, null: false, default: ''
|
t.string :name, null: false, default: ''
|
||||||
t.string :description, :string, null: false, default: ''
|
t.string :description, :string, null: false, default: ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user