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
c882e763
Commit
c882e763
authored
Aug 11, 2017
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change email_opted_in_at to datetime
parent
aa5fefc8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
db/migrate/20170811203342_fix_email_opted_in_at_on_users.rb
db/migrate/20170811203342_fix_email_opted_in_at_on_users.rb
+19
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20170811203342_fix_email_opted_in_at_on_users.rb
0 → 100644
View file @
c882e763
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
FixEmailOptedInAtOnUsers
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
def
up
remove_column
:users
,
:email_opted_in_at
add_column
:users
,
:email_opted_in_at
,
:datetime
,
null:
true
end
def
down
remove_column
:users
,
:email_opted_in_at
add_column
:users
,
:email_opted_in_at
,
:datetime_with_timezone
,
null:
true
end
end
db/schema.rb
View file @
c882e763
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201708
0816351
2
)
do
ActiveRecord
::
Schema
.
define
(
version:
201708
1120334
2
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -1907,7 +1907,7 @@ ActiveRecord::Schema.define(version: 20170808163512) do
t
.
boolean
"email_opted_in"
t
.
string
"email_opted_in_ip"
t
.
integer
"email_opted_in_source_id"
t
.
datetime
_with_timezone
"email_opted_in_at"
t
.
datetime
"email_opted_in_at"
end
add_index
"users"
,
[
"admin"
],
name:
"index_users_on_admin"
,
using: :btree
...
...
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