Sha256: d7fcb9702815dc9b15442d3f3a2b32eff8bc03a15dc6761c077af6729ce98753

Contents?: true

Size: 208 Bytes

Versions: 4

Compression:

Stored size: 208 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :comments do |t|
      t.references :commentable, polymorphic: true, index: true

      t.timestamps null: false
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
active_record_doctor-1.3.0 test/dummy/db/migrate/20160604081452_create_comments.rb
active_record_doctor-1.2.1 test/dummy/db/migrate/20160604081452_create_comments.rb
active_record_doctor-1.2.0 test/dummy/db/migrate/20160604081452_create_comments.rb
eager_counting-0.1.0 test/dummy/db/migrate/20150727082016_create_comments.rb