retrospring/db/migrate/20141213182609_create_notifications.rb
2020-04-19 18:10:31 +02:00

12 lines
253 B
Ruby

class CreateNotifications < ActiveRecord::Migration[4.2]
def change
create_table :notifications do |t|
t.string :target_type
t.integer :target_id
t.integer :recipient_id
t.boolean :new
t.timestamps
end
end
end