Files
growstuff/db/migrate/20130212123628_create_notifications.rb
T
2020-01-10 16:50:52 +13:00

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