rename table, add fields to link table

This commit is contained in:
Karol
2019-08-18 12:53:13 +02:00
parent 5ddafe6383
commit 818064267c
3 changed files with 18 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class RenameCodeHarborLinksToCodeharborLinks < ActiveRecord::Migration[5.2]
def change
rename_table :code_harbor_links, :codeharbor_links
end
end

View File

@@ -0,0 +1,7 @@
class AddPushUrlClientIdClientSecretToCodeharborLinks < ActiveRecord::Migration[5.2]
def change
add_column :codeharbor_links, :push_url, :string
add_column :codeharbor_links, :client_id, :string
add_column :codeharbor_links, :client_secret, :string
end
end