demarches-normaliennes/db/migrate/20161221153929_create_notification.rb

15 lines
379 B
Ruby
Raw Normal View History

2016-12-21 17:26:31 +01:00
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