Sha256: 35b13f50cf1a336a82f38b753c0333ea3eb4ad4abf7dd6157dcd9e57043638a6

Contents?: true

Size: 458 Bytes

Versions: 11

Compression:

Stored size: 458 Bytes

Contents

class CreateMessages < ActiveRecord::Migration[4.2]
  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

11 entries across 11 versions & 3 rubygems

Version Path
enju_biblio-0.4.0.rc.1 spec/dummy/db/migrate/154_create_messages.rb
enju_event-0.4.0.beta.2 spec/dummy/db/migrate/154_create_messages.rb
enju_biblio-0.4.0.beta.2 spec/dummy/db/migrate/154_create_messages.rb
enju_message-0.4.0.beta.2 db/migrate/154_create_messages.rb
enju_event-0.4.0.beta.1 spec/dummy/db/migrate/154_create_messages.rb
enju_message-0.4.0.beta.1 db/migrate/154_create_messages.rb
enju_biblio-0.4.0.beta.1 spec/dummy/db/migrate/154_create_messages.rb
enju_message-0.3.1 db/migrate/154_create_messages.rb
enju_message-0.3.0 db/migrate/154_create_messages.rb
enju_message-0.3.0.rc.1 db/migrate/154_create_messages.rb
enju_message-0.3.0.beta.1 db/migrate/154_create_messages.rb