Sha256: ba806da530dca43ce110cdb4ffdd634460ab98c69adeb2b38c5f458314349653
Contents?: true
Size: 362 Bytes
Versions: 27
Compression:
Stored size: 362 Bytes
Contents
class CreateUserNotifications < ActiveRecord::Migration def up create_table :user_notifications do |t| t.references :user t.references :project t.string :environment t.timestamps end User.unscoped do User.find_each(&:save_default_notifications) end end def down drop_table :user_notifications end end
Version data entries
27 entries across 27 versions & 1 rubygems