##// END OF EJS Templates
fixed #9542 sqlite3 exception in db:migrate on AddChangesetCommitDate...
Jean-Philippe Lang -
r380:71b6dd232e0a
parent child
Show More
@@ -1,10 +1,10
1 class AddChangesetCommitDate < ActiveRecord::Migration
1 class AddChangesetCommitDate < ActiveRecord::Migration
2 def self.up
2 def self.up
3 add_column :changesets, :commit_date, :date, :null => false
3 add_column :changesets, :commit_date, :date
4 Changeset.update_all "commit_date = committed_on"
4 Changeset.update_all "commit_date = committed_on"
5 end
5 end
6
6
7 def self.down
7 def self.down
8 remove_column :changesets, :commit_date
8 remove_column :changesets, :commit_date
9 end
9 end
10 end
10 end
General Comments 0
You need to be logged in to leave comments. Login now