Remove NOT NULL constraints on globalized fields
It seems that the Rails 4.2-compatible version of Globalize does not play well with NOT NULL constraints on the globalized attributes. Remove the constraints to work around this issue.
This commit is contained in:
parent
5ff5337e55
commit
2c56cd7a96
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveNotNullConstraintOnConferenceTitle < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :conferences, :title, :string, null: true
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveNotNullConstraintOnConferenceDescription < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :conferences, :description, :text, null: true
|
||||||
|
end
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveNotNullConstraintOnTrackName < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
change_column :tracks, :name, :text, null: true
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue