summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-06 14:51:25 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-06 14:51:25 +0000
commit7ba7a19cf6047d5428069d6b4a57a5f8859f6826 (patch)
tree43ea58cba8608fc85a07ed4bba6b7de5dba7875a /db
parent9eafc3e9a2dad4de36d64bd26d2e9f18c2943b98 (diff)
downloadredmine-7ba7a19cf6047d5428069d6b4a57a5f8859f6826.tar.gz
redmine-7ba7a19cf6047d5428069d6b4a57a5f8859f6826.zip
Remove trailing whitespaces from db/migrate (#31506).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18232 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110223180953_salt_user_passwords.rb2
-rw-r--r--db/migrate/20130201184705_add_unique_index_on_tokens_value.rb2
-rw-r--r--db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb2
-rw-r--r--db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb2
-rw-r--r--db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb2
-rw-r--r--db/migrate/20151021185456_change_auth_sources_filter_to_text.rb2
6 files changed, 6 insertions, 6 deletions
diff --git a/db/migrate/20110223180953_salt_user_passwords.rb b/db/migrate/20110223180953_salt_user_passwords.rb
index 007691b90..df2b486f7 100644
--- a/db/migrate/20110223180953_salt_user_passwords.rb
+++ b/db/migrate/20110223180953_salt_user_passwords.rb
@@ -1,5 +1,5 @@
class SaltUserPasswords < ActiveRecord::Migration[4.2]
-
+
def self.up
say_with_time "Salting user passwords, this may take some time..." do
User.salt_unsalted_passwords!
diff --git a/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb b/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb
index 4413e4e3b..1d3716eb2 100644
--- a/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb
+++ b/db/migrate/20130201184705_add_unique_index_on_tokens_value.rb
@@ -4,7 +4,7 @@ class AddUniqueIndexOnTokensValue < ActiveRecord::Migration[4.2]
# Just in case
duplicates = Token.connection.select_values("SELECT value FROM #{Token.table_name} GROUP BY value HAVING COUNT(id) > 1")
Token.where(:value => duplicates).delete_all
-
+
add_index :tokens, :value, :unique => true, :name => 'tokens_value'
end
end
diff --git a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb
index 508e3ad39..5ea3240e5 100644
--- a/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb
+++ b/db/migrate/20151020182334_change_attachments_filesize_limit_to_8.rb
@@ -1,5 +1,5 @@
class ChangeAttachmentsFilesizeLimitTo8 < ActiveRecord::Migration[4.2]
- def self.up
+ def self.up
change_column :attachments, :filesize, :integer, :limit => 8, :default => 0, :null => false
end
diff --git a/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb b/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb
index 9c185b0cd..d92955833 100644
--- a/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb
+++ b/db/migrate/20151020182731_fix_comma_in_user_format_setting_value.rb
@@ -1,5 +1,5 @@
class FixCommaInUserFormatSettingValue < ActiveRecord::Migration[4.2]
- def self.up
+ def self.up
Setting.
where(:name => 'user_format', :value => 'lastname_coma_firstname').
update_all(:value => 'lastname_comma_firstname')
diff --git a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
index 7d0fa8a17..7ac2f0e1a 100644
--- a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
+++ b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
@@ -1,5 +1,5 @@
class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration[4.2]
- def self.up
+ def self.up
change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false
end
diff --git a/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb b/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb
index 71575631e..056ea75f0 100644
--- a/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb
+++ b/db/migrate/20151021185456_change_auth_sources_filter_to_text.rb
@@ -1,5 +1,5 @@
class ChangeAuthSourcesFilterToText < ActiveRecord::Migration[4.2]
- def self.up
+ def self.up
change_column :auth_sources, :filter, :text
end