115595167-new_migration

This commit is contained in:
Stas 2016-04-21 11:03:13 +03:00
parent da1228a457
commit 16de6bfaea
2 changed files with 9 additions and 4 deletions

View file

@ -11,9 +11,5 @@ class AddMatchingColumn < ActiveRecord::Migration
tables.each do |table| tables.each do |table|
add_column table, :uuid, :string add_column table, :uuid, :string
end end
ApiLog::EppLog.connection.execute("ALTER TABLE epp_logs ADD COLUMN uuid varchar;")
ApiLog::ReppLog.connection.execute("ALTER TABLE repp_logs ADD COLUMN uuid varchar;")
end end
end end

View file

@ -0,0 +1,9 @@
class AddLogMatchingColumn < ActiveRecord::Migration
def change
ApiLog::EppLog.connection.execute("ALTER TABLE epp_logs ADD COLUMN uuid varchar;")
ApiLog::ReppLog.connection.execute("ALTER TABLE repp_logs ADD COLUMN uuid varchar;")
end
end