Sha256: 80bfb19ac073cf1e43ff6dbb8c892ce2763def7de34ac0319f78893a1ba2fd57
Contents?: true
Size: 469 Bytes
Versions: 20
Compression:
Stored size: 469 Bytes
Contents
class CreatePictureFiles < ActiveRecord::Migration[4.2] def change create_table :picture_files do |t| t.integer :picture_attachable_id t.string :picture_attachable_type t.string :content_type t.text :title t.string :thumbnail t.integer :position t.timestamps end add_index :picture_files, %i[picture_attachable_id picture_attachable_type], name: "index_picture_files_on_picture_attachable_id_and_type" end end
Version data entries
20 entries across 20 versions & 3 rubygems