Boolean correctness in migrations
This commit is contained in:
parent
7d786c32ed
commit
061d777266
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
class AddUserVisible < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "users", "visible", :boolean, :default => true, :null => false
|
||||
User.update_all("visible = 1")
|
||||
User.update_all(:visible => true)
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue