Sha256: 311b1441c0cc4954aa98b3cf0d3591a7d51e5b495b146c2379092d3f07304f6d

Contents?: true

Size: 307 Bytes

Versions: 7

Compression:

Stored size: 307 Bytes

Contents

class CreateForumSubscriptions < ActiveRecord::Migration[4.2]
  def change
    create_table :forum_subscriptions, force: :cascade do |t|
      t.references :forum_thread, foreign_key: true
      t.references :user, foreign_key: true
      t.string   :subscription_type

      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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