demarches-normaliennes/db/migrate/20161221153929_create_notification.rb
2017-06-13 10:35:23 +02:00

14 lines
379 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