mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
115595167-new_migration
This commit is contained in:
parent
da1228a457
commit
16de6bfaea
2 changed files with 9 additions and 4 deletions
|
@ -11,9 +11,5 @@ class AddMatchingColumn < ActiveRecord::Migration
|
|||
tables.each do |table|
|
||||
add_column table, :uuid, :string
|
||||
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
|
||||
|
|
9
db/migrate/20160421074023_add_log_matching_column.rb
Normal file
9
db/migrate/20160421074023_add_log_matching_column.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue