Sha256: 18c00190d5205fc6bfa470990d48c37cd382fb46eb99ab85fd0a360279cf34db

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def change
    create_table :products, as_relation_superclass: 'producible' do |t|
      t.string :name
      t.float :price

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
acts_as_relation-0.1.1 spec/dummy/db/migrate/002_create_products.rb