Sha256: c3017445a15c22f34c1b426daf711ca6a8ec1dc20847624a7ddd31d4f2527b77

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

class CreateVariants < ActiveRecord::Migration[5.1]
  def change
    create_table :variants do |t|
      t.string :name
      t.integer :enginecap
      t.integer :year
      t.string :fueltype
      t.string :gearshift
      t.integer :fuelcap
      t.integer :seating
      t.float :mileage
      t.float :price
      t.references :brand, foreign_key: true      

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Depreciation-0.1.3 db/migrate/20180405124007_create_variants.rb