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:
Petko Bordjukov 2015-04-08 23:53:12 +03:00
parent 5ff5337e55
commit 2c56cd7a96
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class RemoveNotNullConstraintOnConferenceTitle < ActiveRecord::Migration
def change
change_column :conferences, :title, :string, null: true
end
end

View File

@ -0,0 +1,5 @@
class RemoveNotNullConstraintOnConferenceDescription < ActiveRecord::Migration
def change
change_column :conferences, :description, :text, null: true
end
end

View File

@ -0,0 +1,5 @@
class RemoveNotNullConstraintOnTrackName < ActiveRecord::Migration
def change
change_column :tracks, :name, :text, null: true
end
end