8 lines
290 B
Ruby
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
|