Sha256: 262da3eefce4066678332636246bacf3239e7d3ad7126258c9983cd1a554ad40
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
class CreatePictureFiles < ActiveRecord::Migration[5.1] 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_seed-0.4.0.beta.1 | spec/dummy/db/migrate/20081027150907_create_picture_files.rb |