Sha256: a4f41c370b0c0ad1d39d288529ba264e72ca8e88a31fbf48fd905906c751f8ba
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
class CreateBikes < ActiveRecord::Migration def change create_table :bikes do |t| t.string :name, null: true, limit: 255 t.integer :cylinders, null: true t.integer :rpm, null: true t.integer :cc, null: true t.integer :user_id, null: true t.timestamp :created_at, null: true t.timestamp :updated_at, null: true end add_index :bikes, :cylinders add_index :bikes, :name add_index :bikes, :cc end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schemaless-0.0.3 | spec/dummy/db/migrate/20141202223732_create_bikes.rb |