Sha256: 6dbbd300b20401dd028f09d825ae21c2d30f546447708c6fc76d3a3d445c5932
Contents?: true
Size: 470 Bytes
Versions: 123
Compression:
Stored size: 470 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, [:picture_attachable_id, :picture_attachable_type], name: "index_picture_files_on_picture_attachable_id_and_type" end end
Version data entries
123 entries across 123 versions & 18 rubygems