Sha256: b59b9528935382dbe9523f0018668c58f9de9946cdf99f9d72893c15e2a4f652

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

class CreateForumThreads < ActiveRecord::Migration[4.2]
  def change
    create_table :forum_threads, force: :cascade do |t|
      t.references :forum_category, foreign_key: true
      t.references :user, foreign_key: true
      t.string :title, null: false
      t.string :slug, null: false
      t.integer :forum_posts_count, default: 0
      t.boolean :pinned, default: false
      t.boolean :solved, default: false

      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
simple_discussion-1.0.0 db/migrate/20170417012931_create_forum_threads.rb
simple_discussion-0.9.5 db/migrate/20170417012931_create_forum_threads.rb
simple_discussion-0.9.4 db/migrate/20170417012931_create_forum_threads.rb
simple_discussion-0.9.3 db/migrate/20170417012931_create_forum_threads.rb
simple_discussion-0.9.2 db/migrate/20170417012931_create_forum_threads.rb
simple_discussion-0.9.1 db/migrate/20170417012931_create_forum_threads.rb
simple_discussion-0.9.0 db/migrate/20170417012931_create_forum_threads.rb