diff --git a/db/schema.rb b/db/schema.rb index 0329fd25..d73f3280 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150711164423) do +ActiveRecord::Schema.define(version: 20151022214618) do create_table "active_admin_comments", force: :cascade do |t| t.string "namespace", limit: 255 @@ -101,7 +101,7 @@ ActiveRecord::Schema.define(version: 20150711164423) do create_table "orgas", force: :cascade do |t| t.integer "region_id", limit: 4, default: 0, null: false - t.integer "department", limit: 4, default: 0, null: false + t.integer "department", limit: 4 t.string "name", limit: 255, default: "", null: false t.string "url", limit: 255, default: "", null: false t.string "city", limit: 255, default: "", null: false diff --git a/db/structure.sql b/db/structure.sql index 5ae923f1..5cc01a54 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -128,7 +128,7 @@ DROP TABLE IF EXISTS `lugs`; CREATE TABLE `lugs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `region` int(11) NOT NULL DEFAULT '0', - `department` int(11) NOT NULL DEFAULT '0', + `department` int(11), `name` varchar(255) NOT NULL DEFAULT '', `url` varchar(255) NOT NULL DEFAULT '', `city` varchar(255) NOT NULL DEFAULT '',