diff --git a/db/migrate/20161210154558_populate_tags.rb b/db/migrate/20161210154558_populate_tags.rb index bcd99a1b..1a09ba75 100644 --- a/db/migrate/20161210154558_populate_tags.rb +++ b/db/migrate/20161210154558_populate_tags.rb @@ -5,16 +5,14 @@ class PopulateTags < ActiveRecord::Migration event = Event.find_by id: result[0] event.tag_list = result[1] + ' helo world' event.save - say event.id - say event.tag_list end - change_column :events, :tags, :text, null: true - change_column :orgas, :tags, :text, null: true + change_column_null :events, :tags, true + change_column_null :orgas, :tags, true end def self.down - change_column :events, :tags, :text, null: false - change_column :orgas, :tags, :text, null: false + change_column_null :events, :tags, false + change_column_null :orgas, :tags, false end end