Sha256: f2e557688e8c5ac5f69eaa79e314be644412bc3ea62cf92685d8b417400487d5

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

class CreateVimoItems < ActiveRecord::Migration[5.1]
  def change
    create_table :vimo_items do |t|
      t.references :entity, foreign_key: true
      t.references :expandable, polymorphic: true, index: { unique: true }
      t.text :data

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vimo-0.1.3 db/migrate/20180210104430_create_vimo_items.rb