Sha256: bcba779002f42520562c53b03a9a340a583309ecc788a603be3cccac8b15e11e

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 Bytes

Contents

class CreateMessages < ActiveRecord::Migration
  def self.up
    create_table :messages, force: true do |t|
      t.datetime :read_at
      t.references :sender, index: true
      t.references :receiver, index: true
      t.string   :subject, null: false
      t.text     :body
      t.references :message_request, index: true
      t.references :parent, index: true

      t.timestamps
    end
  end

  def self.down
    drop_table :messages
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_message-0.2.4 db/migrate/154_create_messages.rb
enju_message-0.2.3 db/migrate/154_create_messages.rb
enju_message-0.2.2 db/migrate/154_create_messages.rb
enju_message-0.2.1 db/migrate/154_create_messages.rb
enju_message-0.2.0 db/migrate/154_create_messages.rb
enju_message-0.2.0.beta.5 db/migrate/154_create_messages.rb