Sha256: 97a2c88aa31659d08ffacf1e2de1490fba9297bae0cd958d3b67ff0ef919a15b

Contents?: true

Size: 266 Bytes

Versions: 1

Compression:

Stored size: 266 Bytes

Contents

class CreateRiders < ActiveRecord::Migration
  def change
    create_table :riders do |t|
      t.string :name, null: true, limit: 255
      t.integer :position, null: true
    end
    add_index :riders, :position
    add_index :riders, [:name, :position]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
schemaless-0.0.3 spec/dummy/db/migrate/20141202223751_create_riders.rb