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 imposible
This commit is contained in:
parent
9fd2117e7b
commit
09cbf97f43
@ -26,9 +26,7 @@ class AlterCustomWorkflows < ActiveRecord::Migration[4.2]
|
|||||||
t.remove :project_id
|
t.remove :project_id
|
||||||
# TODO: The column cannot be removed on SQL server due to NOT NULL constraint.
|
# TODO: The column cannot be removed on SQL server due to NOT NULL constraint.
|
||||||
# The constraint's name is random and therefore cannot be easily removed.
|
# The constraint's name is random and therefore cannot be easily removed.
|
||||||
if ActiveRecord::Base.connection.adapter_name.downcase != 'sqlserver'
|
t.remove :is_enabled if ActiveRecord::Base.connection.adapter_name.downcase != 'sqlserver'
|
||||||
t.remove :is_enabled
|
|
||||||
end
|
|
||||||
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: ''
|
||||||
t.integer :position, :integer, null: false, default: 1
|
t.integer :position, :integer, null: false, default: 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user