From 7157d056afc0cd85b6eececeb15ce3c4469dade4 Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 9 Sep 2015 16:33:15 +0200 Subject: [PATCH] lowers organization.name limit to 60 in order to be coherent with username --- ...50909142534_set_organization_name_limit.rb | 5 ++++ db/schema.rb | 24 +++++++++---------- 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 db/migrate/20150909142534_set_organization_name_limit.rb diff --git a/db/migrate/20150909142534_set_organization_name_limit.rb b/db/migrate/20150909142534_set_organization_name_limit.rb new file mode 100644 index 000000000..b7a8f3a63 --- /dev/null +++ b/db/migrate/20150909142534_set_organization_name_limit.rb @@ -0,0 +1,5 @@ +class SetOrganizationNameLimit < ActiveRecord::Migration + def change + change_column :organizations, :name, :string, limit: 60 + end +end diff --git a/db/schema.rb b/db/schema.rb index bb2fafddd..dd20a6347 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: 20150909135032) do +ActiveRecord::Schema.define(version: 20150909142534) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -158,7 +158,7 @@ ActiveRecord::Schema.define(version: 20150909135032) do create_table "organizations", force: :cascade do |t| t.integer "user_id" - t.string "name", limit: 80 + t.string "name", limit: 60 t.datetime "verified_at" t.datetime "rejected_at" end @@ -201,27 +201,27 @@ ActiveRecord::Schema.define(version: 20150909135032) do add_index "tags", ["name"], name: "index_tags_on_name", unique: true, using: :btree create_table "users", force: :cascade do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at" - t.integer "sign_in_count", default: 0, null: false + t.integer "sign_in_count", default: 0, null: false t.datetime "current_sign_in_at" t.datetime "last_sign_in_at" t.string "current_sign_in_ip" t.string "last_sign_in_ip" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false t.string "confirmation_token" t.datetime "confirmed_at" t.datetime "confirmation_sent_at" t.string "unconfirmed_email" - t.boolean "email_on_debate_comment", default: false - t.boolean "email_on_comment_reply", default: false + t.boolean "email_on_debate_comment", default: false + t.boolean "email_on_comment_reply", default: false t.string "phone_number", limit: 30 t.string "official_position" - t.integer "official_level", default: 0 + t.integer "official_level", default: 0 t.datetime "hidden_at" t.string "sms_confirmation_code" t.string "username", limit: 60 @@ -230,8 +230,8 @@ ActiveRecord::Schema.define(version: 20150909135032) do t.datetime "residence_verified_at" t.datetime "letter_sent_at" t.string "email_verification_token" - t.integer "sms_confirmation_tries", default: 0 - t.integer "residence_verification_tries", default: 0 + t.integer "sms_confirmation_tries", default: 0 + t.integer "residence_verification_tries", default: 0 t.datetime "verified_at" t.string "unconfirmed_phone" t.string "confirmed_phone"