demarches-normaliennes/db/migrate/20161221153929_create_notification.rb
2016-12-21 17:26:31 +01:00

16 lines
381 B
Ruby

class CreateNotification < ActiveRecord::Migration[5.0]
def change
create_table :notifications do |t|
t.boolean :already_read, default: false
t.string :liste, array: true
t.boolean :multiple, default: false
t.string :type_notif
t.datetime :created_at
t.datetime :updated_at
end
add_belongs_to :notifications, :dossier
end
end