lowers organization.name limit to 60 in order to be coherent with username
This commit is contained in:
5
db/migrate/20150909142534_set_organization_name_limit.rb
Normal file
5
db/migrate/20150909142534_set_organization_name_limit.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class SetOrganizationNameLimit < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :organizations, :name, :string, limit: 60
|
||||
end
|
||||
end
|
||||
24
db/schema.rb
24
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"
|
||||
|
||||
Reference in New Issue
Block a user