mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-05 12:42:48 -05:00
17 lines
340 B
Ruby
17 lines
340 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateNotifications < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :notifications do |t|
|
|
t.integer :from_id
|
|
t.integer :to_id, null: false
|
|
t.string :subject
|
|
t.text :body
|
|
t.boolean :read
|
|
t.integer :post_id
|
|
|
|
t.timestamps null: true
|
|
end
|
|
end
|
|
end
|