Sha256: fdf6ae7ae5fe0bafff0dc9d20c8157d1352d0145597ee587ef1af248593a2d6d

Contents?: true

Size: 320 Bytes

Versions: 1

Compression:

Stored size: 320 Bytes

Contents

require_relative './migration_helper'

class CreateMotorVehicles < MigrationHelper.migration_base_class
  def change
    create_table :motor_vehicles do |t|
      t.references :vehicle
      t.string  :fuel
      t.integer :number_of_wheels

      t.timestamps
    end
    
    cti_create_view('MotorVehicle')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dbview_cti-0.2.3 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb