Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c68c0158
Commit
c68c0158
authored
Dec 30, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'drop-old-fields' into 'master'
Drop old fields Fixes #143 See merge request !281
parents
f27c6f74
2b0f1b45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
db/migrate/20141230100055_remove_old_fields_from_namespace.rb
...igrate/20141230100055_remove_old_fields_from_namespace.rb
+11
-0
db/schema.rb
db/schema.rb
+2
-4
No files found.
db/migrate/20141230100055_remove_old_fields_from_namespace.rb
0 → 100644
View file @
c68c0158
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
db/schema.rb
View file @
c68c0158
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201412
17125223
)
do
ActiveRecord
::
Schema
.
define
(
version:
201412
30100055
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -262,8 +262,6 @@ ActiveRecord::Schema.define(version: 20141217125223) do
t
.
datetime
"updated_at"
t
.
string
"type"
t
.
string
"description"
,
default:
""
,
null:
false
t
.
string
"ldap_cn"
t
.
integer
"ldap_access"
t
.
string
"avatar"
t
.
boolean
"membership_lock"
,
default:
false
end
...
...
@@ -468,7 +466,6 @@ ActiveRecord::Schema.define(version: 20141217125223) do
t
.
integer
"notification_level"
,
default:
1
,
null:
false
t
.
datetime
"password_expires_at"
t
.
integer
"created_by_id"
t
.
datetime
"last_credential_check_at"
t
.
string
"avatar"
t
.
string
"confirmation_token"
t
.
datetime
"confirmed_at"
...
...
@@ -476,6 +473,7 @@ ActiveRecord::Schema.define(version: 20141217125223) do
t
.
string
"unconfirmed_email"
t
.
boolean
"hide_no_ssh_key"
,
default:
false
t
.
string
"website_url"
,
default:
""
,
null:
false
t
.
datetime
"last_credential_check_at"
t
.
datetime
"admin_email_unsubscribed_at"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment