tap/db/migrate/20150209141337_add_index_on_koelkast.rb
2015-02-09 17:06:24 +01:00

8 lines
290 B
Ruby

class AddIndexOnKoelkast < ActiveRecord::Migration
def change
add_index :users, :koelkast
add_index :users, :orders_count
change_column :products, :price_cents, :integer, default: 0, null: false
change_column :products, :stock, :integer, default: 0, null: false
end
end