class CreateUnicoreMessages < ActiveRecord::Migration
  def change
    create_table :unicore_messages do |t|
      t.belongs_to :user, index: true
      t.belongs_to :author, index: true
      t.belongs_to :recipient, index: true
      t.text :content, null: false
      t.integer :status, null: false
      t.boolean :hidden, null: false, default: false

      t.timestamps null: false
    end
  end
end
