Logo
Explore Help
Register Sign In
Nemcio/Redmine
1
0
Fork 0
You've already forked Redmine
mirror of https://github.com/redmine/redmine.git synced 2025-11-02 03:15:57 +01:00
Code Issues Packages Projects Releases Activity
Files
eae9c9ab2be43c64c830a03e414b51a08571c957
Redmine/db/migrate/048_allow_null_version_effective_date.rb

10 lines
225 B
Ruby
Raw Normal View History

Versions can now be created with no date. Versions with no date appear at the end of the roadmap, sorted by name. git-svn-id: http://redmine.rubyforge.org/svn/trunk@536 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-05-20 17:46:02 +00:00
class AllowNullVersionEffectiveDate < ActiveRecord::Migration
def self.up
Fixed: not null constraints not removed with Postgresql. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1140 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-02-12 21:11:16 +00:00
change_column :versions, :effective_date, :date, :default => nil, :null => true
Versions can now be created with no date. Versions with no date appear at the end of the roadmap, sorted by name. git-svn-id: http://redmine.rubyforge.org/svn/trunk@536 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-05-20 17:46:02 +00:00
end
def self.down
raise IrreversibleMigration
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 400ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API