Sha256: 7a231e23f60eb95fb0cb9819fb6e9eb7125980bc86e2849cc4cb9a57b46109fc
Contents?: true
Size: 473 Bytes
Versions: 8
Compression:
Stored size: 473 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
8 entries across 8 versions & 5 rubygems