Revision 59812f81
Added by Ondřej Pražák over 6 years ago
db/migrate/20150209160604_add_jenkins_home_to_jenkins_instance_table.rb | ||
---|---|---|
1 | 1 |
class AddJenkinsHomeToJenkinsInstanceTable < ActiveRecord::Migration |
2 | 2 |
def up |
3 |
add_column :integration_jenkins_instances, :jenkins_home, :string, :null => false, :default => "" |
|
3 |
add_column :integration_jenkins_instances, :jenkins_home, :string, :null => false, :default => "", :limit => 255
|
|
4 | 4 |
end |
5 | 5 |
|
6 | 6 |
def down |
db/migrate/20150213095447_add_cert_path_to_jenkins_instances.rb | ||
---|---|---|
1 | 1 |
class AddCertPathToJenkinsInstances < ActiveRecord::Migration |
2 | 2 |
def up |
3 |
add_column :integration_jenkins_instances, :cert_path, :string, :null => false, :default => "~/.ssh/id_rsa" |
|
3 |
add_column :integration_jenkins_instances, :cert_path, :string, :null => false, :default => "~/.ssh/id_rsa", :limit => 255
|
|
4 | 4 |
end |
5 | 5 |
|
6 | 6 |
def down |
db/migrate/20150223142315_change_jenkins_instance_cert_path_column.rb | ||
---|---|---|
1 | 1 |
class ChangeJenkinsInstanceCertPathColumn < ActiveRecord::Migration |
2 | 2 |
def up |
3 |
change_column :integration_jenkins_instances, :cert_path, :string, :default => "" |
|
3 |
change_column :integration_jenkins_instances, :cert_path, :string, :default => "", :limit => 255
|
|
4 | 4 |
end |
5 | 5 |
|
6 | 6 |
def down |
Also available in: Unified diff
Fixes #15226 - Add limit 255 to new string columns