From e3b49c052b497827c9f058feaa066bbfe184f4da Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 28 Sep 2007 14:18:47 +0000 Subject: Fixed spelling errors (closes #9706) [tarmo/rmm5t] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../connection_adapters/abstract/database_statements.rb | 2 +- .../active_record/connection_adapters/abstract/schema_statements.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'activerecord/lib/active_record/connection_adapters/abstract') diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index daeaba0904..a80025e7a7 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -133,7 +133,7 @@ module ActiveRecord # Do nothing by default. Implement for PostgreSQL, Oracle, ... end - # Inserts the given fixture into the table. Overriden in adapters that require + # Inserts the given fixture into the table. Overridden in adapters that require # something beyond a simple insert (eg. Oracle). def insert_fixture(fixture, table_name) execute "INSERT INTO #{table_name} (#{fixture.key_list}) VALUES (#{fixture.value_list})", 'Fixture Insert' diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 0bedffa0e1..2ae19d2b15 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -142,7 +142,7 @@ module ActiveRecord # Sets a new default value for a column. If you want to set the default # value to +NULL+, you are out of luck. You need to - # DatabaseStatements#execute the apppropriate SQL statement yourself. + # DatabaseStatements#execute the appropriate SQL statement yourself. # ===== Examples # change_column_default(:suppliers, :qualification, 'new') # change_column_default(:accounts, :authorized, 1) @@ -237,7 +237,7 @@ module ActiveRecord execute "CREATE TABLE #{ActiveRecord::Migrator.schema_info_table_name} (version #{type_to_sql(:integer)})" execute "INSERT INTO #{ActiveRecord::Migrator.schema_info_table_name} (version) VALUES(0)" rescue ActiveRecord::StatementInvalid - # Schema has been intialized + # Schema has been initialized end end @@ -255,7 +255,7 @@ module ActiveRecord def type_to_sql(type, limit = nil, precision = nil, scale = nil) #:nodoc: if native = native_database_types[type] column_type_sql = native.is_a?(Hash) ? native[:name] : native - if type == :decimal # ignore limit, use precison and scale + if type == :decimal # ignore limit, use precision and scale precision ||= native[:precision] scale ||= native[:scale] if precision -- cgit v1.2.3