Sha256: 879e7ed4760a7924d0b1ef6382246f51b751534ef08b7ad5fd0be64ff86e66f0

Contents?: true

Size: 302 Bytes

Versions: 2

Compression:

Stored size: 302 Bytes

Contents

class CreateForumPosts < ActiveRecord::Migration[4.2]
  def change
    create_table :forum_posts do |t|
      t.references :forum_thread, foreign_key: true
      t.references :user, foreign_key: true
      t.text     :body
      t.boolean  :solved, default: false

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_discussion-1.2.0 db/migrate/20170417012932_create_forum_posts.rb
simple_discussion-1.0.1 db/migrate/20170417012932_create_forum_posts.rb