Commit 00b7cae9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove ldap_cn and ldap_access fields from namespaces table

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1abfc073
class RemoveOldFieldsFromNamespace < ActiveRecord::Migration
def up
remove_column :namespaces, :ldap_cn
remove_column :namespaces, :ldap_access
end
def down
add_column :namespaces, :ldap_cn, :string, null: true
add_column :namespaces, :ldap_access, :integer, null: true
end
end
...@@ -11,7 +11,7 @@ ...@@ -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: 20141217125223) do ActiveRecord::Schema.define(version: 20141230100055) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
...@@ -262,8 +262,6 @@ ActiveRecord::Schema.define(version: 20141217125223) do ...@@ -262,8 +262,6 @@ ActiveRecord::Schema.define(version: 20141217125223) do
t.datetime "updated_at" t.datetime "updated_at"
t.string "type" t.string "type"
t.string "description", default: "", null: false t.string "description", default: "", null: false
t.string "ldap_cn"
t.integer "ldap_access"
t.string "avatar" t.string "avatar"
t.boolean "membership_lock", default: false t.boolean "membership_lock", default: false
end end
...@@ -468,7 +466,6 @@ ActiveRecord::Schema.define(version: 20141217125223) do ...@@ -468,7 +466,6 @@ ActiveRecord::Schema.define(version: 20141217125223) do
t.integer "notification_level", default: 1, null: false t.integer "notification_level", default: 1, null: false
t.datetime "password_expires_at" t.datetime "password_expires_at"
t.integer "created_by_id" t.integer "created_by_id"
t.datetime "last_credential_check_at"
t.string "avatar" t.string "avatar"
t.string "confirmation_token" t.string "confirmation_token"
t.datetime "confirmed_at" t.datetime "confirmed_at"
...@@ -476,6 +473,7 @@ ActiveRecord::Schema.define(version: 20141217125223) do ...@@ -476,6 +473,7 @@ ActiveRecord::Schema.define(version: 20141217125223) do
t.string "unconfirmed_email" t.string "unconfirmed_email"
t.boolean "hide_no_ssh_key", default: false t.boolean "hide_no_ssh_key", default: false
t.string "website_url", default: "", null: false t.string "website_url", default: "", null: false
t.datetime "last_credential_check_at"
t.datetime "admin_email_unsubscribed_at" t.datetime "admin_email_unsubscribed_at"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment