Sha256: d23f2ff44e8372dc6549f6c119c36da551a811edeba924b4d47741b53521e702

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

class CreateMessages < ActiveRecord::Migration
  def self.up
    create_table :messages do |t|
      t.integer :sender_id, :recipient_id
      t.boolean :sender_deleted, :recipient_deleted, :default => false
      t.string :subject
      t.text :body
      t.datetime :read_at
      t.timestamps
    end
  end

  def self.down
    drop_table :messages
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_private_messages-0.0.2 test/dummy/db/migrate/20141102184628_create_messages.rb
rails_private_messages-0.0.1 test/dummy/db/migrate/20141102184628_create_messages.rb