City is no more required at the database level. Refs #51

This commit is contained in:
echarp 2016-01-11 13:57:10 +01:00
parent df6902a535
commit 46ead9bed7
2 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,7 @@
# Events and orgas do not require a city anymore
class ModifyCityNullable < ActiveRecord::Migration
def change
change_column :events, :city, :string, default: '', null: true
change_column :orgas, :city, :string, default: '', null: true
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20160109203136) do
ActiveRecord::Schema.define(version: 20160111124855) do
create_table "active_admin_comments", force: :cascade do |t|
t.string "namespace", limit: 255
@ -63,7 +63,7 @@ ActiveRecord::Schema.define(version: 20160109203136) do
t.text "description", limit: 65535, null: false
t.datetime "start_time", null: false
t.datetime "end_time", null: false
t.string "city", limit: 255, default: "", null: false
t.string "city", limit: 255, default: ""
t.integer "region_id", limit: 4, default: 0, null: false
t.integer "locality", limit: 4, default: 0, null: false
t.string "url", limit: 255, default: "", null: false
@ -104,7 +104,7 @@ ActiveRecord::Schema.define(version: 20160109203136) do
t.string "department", limit: 4, default: "0", null: false
t.string "name", 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: ""
t.integer "kind_id", limit: 4
t.string "feed", limit: 255
t.string "contact", limit: 255