mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-04 20:10:16 +01:00
Changed all the created_at and updated_at fields back to a null default to fix #301. It seems that the problem with datetime fields and Postgresql was a Rails bug that was fixed in 1.1, so it should be OK now.
Unfortunately, I couldn't seem to create a migration to revert the fields, so I had to alter the older migration files. This means that if you're using the trunk you need to export your data, delete the database, create it again, run rake db:migrate and then reimport your data. Make sure you backup the whole database first, just in case! git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@261 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
b78b0f4eca
commit
cf0d56e10b
5 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class AddProjectDescription < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :projects, :description, :text, :default => ''
|
||||
add_column :projects, :description, :text
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue