OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/modules/ldap_groups/db/migrate/20200427082928_ldap_groups_...

16 lines
703 B

class LdapGroupsTimestamps < ActiveRecord::Migration[6.0]
def up
change_column_default :ldap_groups_synchronized_groups, :created_at, -> { 'CURRENT_TIMESTAMP' }
change_column_default :ldap_groups_synchronized_groups, :updated_at, -> { 'CURRENT_TIMESTAMP' }
change_column_default :ldap_groups_synchronized_filters, :created_at, -> { 'CURRENT_TIMESTAMP' }
change_column_default :ldap_groups_synchronized_filters, :updated_at, -> { 'CURRENT_TIMESTAMP' }
change_column_default :ldap_groups_memberships, :created_at, -> { 'CURRENT_TIMESTAMP' }
change_column_default :ldap_groups_memberships, :updated_at, -> { 'CURRENT_TIMESTAMP' }
end
def down
# Nothing to do
end
end