Sha256: 6e9da8efcd1b79e7a3d5021730e45d07af4a43c4ff9ee2a0fcb2bb1ff468d5df

Contents?: true

Size: 268 Bytes

Versions: 12

Compression:

Stored size: 268 Bytes

Contents

class CreateMotorVehicles < ActiveRecord::Migration
  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

12 entries across 12 versions & 1 rubygems

Version Path
dbview_cti-0.2.2 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.2.1 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.2.0 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.1.5 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.1.4 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.1.3 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.1.2 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.1.1 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.1.0 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.0.3 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.0.2 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb
dbview_cti-0.0.1 spec/dummy-rails-3/db/migrate/20130713133605_create_motor_vehicles.rb