Sha256: e8acba721ededeed04d73b8a44240654edd0841265ae901795c3aff4b7b82ba0
Contents?: true
Size: 413 Bytes
Versions: 55
Compression:
Stored size: 413 Bytes
Contents
class CreateImages < ActiveRecord::Migration[5.0] def change create_table :images do |t| t.integer :imageable_id t.string :imageable_type t.references :asset t.integer :position t.boolean :visible t.timestamps end add_index :images, :imageable_id add_index :images, :imageable_type add_index :images, :position add_index :images, :visible end end
Version data entries
55 entries across 55 versions & 1 rubygems