tap/db/migrate/20150209141337_add_index_on_koelkast.rb

9 lines
290 B
Ruby
Raw Normal View History

2015-02-09 16:06:24 +00:00
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