Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrations for ssh key STI and deploy keys <-> projects relation
- Loading branch information
1 parent
543d86f
commit a735ce2
Showing
3 changed files
with
60 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddTypeToKey < ActiveRecord::Migration | ||
def change | ||
add_column :keys, :type, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class CreateDeployKeysProjects < ActiveRecord::Migration | ||
def change | ||
create_table :deploy_keys_projects do |t| | ||
t.integer :deploy_key_id, null: false | ||
t.integer :project_id, null: false | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters