Sha256: 988b87790bf9effcc8d5ad3ca17a7aac3b6fe5ee1b82bb9bc9c015f85bc3aa0e
Contents?: true
Size: 283 Bytes
Versions: 4
Compression:
Stored size: 283 Bytes
Contents
class CreateTaggings < ActiveRecord::Migration def change create_table :taggings do |t| t.references :tag, index: true t.references :taggable, polymorphic: true t.datetime :created_at end add_index :taggings, [:taggable_type, :taggable_id] end end
Version data entries
4 entries across 4 versions & 1 rubygems