8784: Fix test for latest firefox.
[arvados.git] / services / api / db / migrate / 20140421151940_timestamps_not_null.rb
1 class TimestampsNotNull < ActiveRecord::Migration
2   def up
3     ActiveRecord::Base.connection.tables.each do |t|
4       next if t == 'schema_migrations'
5       change_column t.to_sym, :created_at, :datetime, :null => false
6       change_column t.to_sym, :updated_at, :datetime, :null => false
7     end
8   end
9   def down
10     # There might have been a NULL constraint before this, depending
11     # on the version of Rails used to build the database.
12   end
13 end