Sha256: 94ee78d74e04f55478ab5cdaf02db7cfa611b6f7fe1f0b6392d5273e747e59db
Contents?: true
Size: 415 Bytes
Versions: 18
Compression:
Stored size: 415 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.text :title 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
18 entries across 18 versions & 6 rubygems