From 355f3979ce915469add3fc7b5ea9d467445f859c Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Fri, 19 Jun 2015 15:09:02 +0200 Subject: [PATCH] update schema and migration --- db/migrate/20150619123121_add_translator_to_users.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20150619123121_add_translator_to_users.rb b/db/migrate/20150619123121_add_translator_to_users.rb index a772755c..849d5ebc 100644 --- a/db/migrate/20150619123121_add_translator_to_users.rb +++ b/db/migrate/20150619123121_add_translator_to_users.rb @@ -1,5 +1,5 @@ class AddTranslatorToUsers < ActiveRecord::Migration def change - add_column :users, :translator, :boolean + add_column :users, :translator, :boolean, default: :false end end diff --git a/db/schema.rb b/db/schema.rb index 8396d6eb..33b792fd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -295,7 +295,7 @@ ActiveRecord::Schema.define(version: 20150619123121) do t.string "socket_key", default: "" t.datetime "socket_key_expiry", default: '0001-01-01 00:00:00' t.string "locale" - t.boolean "translator" + t.boolean "translator", default: false end add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree