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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
86021a7d
Commit
86021a7d
authored
Oct 21, 2011
by
Aleksei Kvitinskii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected last migration
parent
dde28795
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
db/migrate/20111021101550_change_social_fields_in_users.rb
db/migrate/20111021101550_change_social_fields_in_users.rb
+7
-3
No files found.
db/migrate/20111021101550_change_social_fields_in_users.rb
View file @
86021a7d
class
ChangeSocialFieldsInUsers
<
ActiveRecord
::
Migration
class
ChangeSocialFieldsInUsers
<
ActiveRecord
::
Migration
def
up
def
up
change_column
(
:users
,
:skype
,
:string
,
{
:null
=>
false
,
:default
=>
''
})
remove_column
:users
,
:skype
change_column
(
:users
,
:linkedin
,
:string
,
{
:null
=>
false
,
:default
=>
''
})
remove_column
:users
,
:linkedin
change_column
(
:users
,
:twitter
,
:string
,
{
:null
=>
false
,
:default
=>
''
})
remove_column
:users
,
:twitter
add_column
:users
,
:skype
,
:string
,
{
:null
=>
false
,
:default
=>
''
}
add_column
:users
,
:linkedin
,
:string
,
{
:null
=>
false
,
:default
=>
''
}
add_column
:users
,
:twitter
,
:string
,
{
:null
=>
false
,
:default
=>
''
}
end
end
def
down
def
down
...
...
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