Departement is not required anymore, and does not default to 0

This commit is contained in:
echarp 2015-10-22 21:58:48 +02:00
parent 1b6c5e16d2
commit 27901e6adf
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # 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| create_table "active_admin_comments", force: :cascade do |t|
t.string "namespace", limit: 255 t.string "namespace", limit: 255
@ -101,7 +101,7 @@ ActiveRecord::Schema.define(version: 20150711164423) do
create_table "orgas", force: :cascade do |t| create_table "orgas", force: :cascade do |t|
t.integer "region_id", limit: 4, default: 0, null: false 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 "name", limit: 255, default: "", null: false
t.string "url", limit: 255, default: "", null: false t.string "url", limit: 255, default: "", null: false
t.string "city", limit: 255, default: "", null: false t.string "city", limit: 255, default: "", null: false

View File

@ -128,7 +128,7 @@ DROP TABLE IF EXISTS `lugs`;
CREATE TABLE `lugs` ( CREATE TABLE `lugs` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`region` int(11) NOT NULL DEFAULT '0', `region` int(11) NOT NULL DEFAULT '0',
`department` int(11) NOT NULL DEFAULT '0', `department` int(11),
`name` varchar(255) NOT NULL DEFAULT '', `name` varchar(255) NOT NULL DEFAULT '',
`url` varchar(255) NOT NULL DEFAULT '', `url` varchar(255) NOT NULL DEFAULT '',
`city` varchar(255) NOT NULL DEFAULT '', `city` varchar(255) NOT NULL DEFAULT '',