aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-04-10 19:48:06 +0530
committerVipul A M <vipulnsward@gmail.com>2016-04-12 02:26:56 +0530
commitac027338e4a165273607dccee49a3d38bc836794 (patch)
treea4020eb05b843887f73acb0ada519c9605dcf5e1 /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
parent35b19cd1eb95ca0419e1be879fbadf92948369d7 (diff)
downloadrails-ac027338e4a165273607dccee49a3d38bc836794.tar.gz
rails-ac027338e4a165273607dccee49a3d38bc836794.tar.bz2
rails-ac027338e4a165273607dccee49a3d38bc836794.zip
Pass over all Rails 5 warnings, to make sure:
- we are ending sentences properly - fixing of space issues - fixed continuity issues in some sentences. Reverts https://github.com/rails/rails/commit/8fc97d198ef31c1d7a4b9b849b96fc08a667fb02 . This change reverts making sure we add '.' at end of deprecation sentences. This is to keep sentences within Rails itself consistent and with a '.' at the end.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index ca2a41b136..39e8492688 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -325,7 +325,7 @@ module ActiveRecord
select_value("SELECT setval('#{quoted_sequence}', #{value})", 'SCHEMA')
else
- @logger.warn "#{table} has primary key #{pk} with no default sequence" if @logger
+ @logger.warn "#{table} has primary key #{pk} with no default sequence." if @logger
end
end
end
@@ -340,7 +340,7 @@ module ActiveRecord
end
if @logger && pk && !sequence
- @logger.warn "#{table} has primary key #{pk} with no default sequence"
+ @logger.warn "#{table} has primary key #{pk} with no default sequence."
end
if pk && sequence