about summary refs log tree commit diff
path: root/db/migrate/20190805064643_create_bookmark_tags.rb
blob: b2102958140438f3897bf5ef079ad5ae01838dbe (plain) (blame)
1
2
3
4
5
class CreateBookmarkTags < ActiveRecord::Migration[5.2]
  def up
    %w(self.bookmarks .self.bookmarks).each { |name| Tag.find_or_create_by(name: name) }
  end
end