Class: CreatePmMessages

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/postman_pat/templates/create_pm_messages_migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'lib/generators/postman_pat/templates/create_pm_messages_migration.rb', line 2

def change
  create_table :pm_messages do |t|
    t.integer :author_id
    t.integer :parent_id
    t.string :subject
    t.text :message
    t.timestamps
  end
end