Commit a5faae62089a6d13cd5034e090e97f3a83429751
1 parent
8ac7cfd6
Exists in
master
and in
29 other branches
Replacing f in the migration by (0>1)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
db/migrate/20130304200849_add_default_value_to_product_highlighted.rb
1 | 1 | class AddDefaultValueToProductHighlighted < ActiveRecord::Migration |
2 | 2 | def self.up |
3 | 3 | change_column :products, :highlighted, :boolean, :default => false |
4 | - execute('UPDATE products SET highlighted="f" WHERE highlighted IS NULL;') | |
4 | + execute('UPDATE products SET highlighted=(0>1) WHERE highlighted IS NULL;') | |
5 | 5 | end |
6 | 6 | |
7 | 7 | def self.down | ... | ... |