aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJosh Susser <josh@hasmanythrough.com>2012-12-03 21:26:35 -0800
committerJosh Susser <josh@hasmanythrough.com>2012-12-03 21:26:35 -0800
commit94ef7b515b9bd026a0ed67ef7dabbf0b4ab554e3 (patch)
treeb278c0b6c32c32639597a80c747daef564836306 /activerecord
parentf02d2185ebbe01f455a9a91216ff7094b014ea72 (diff)
downloadrails-94ef7b515b9bd026a0ed67ef7dabbf0b4ab554e3.tar.gz
rails-94ef7b515b9bd026a0ed67ef7dabbf0b4ab554e3.tar.bz2
rails-94ef7b515b9bd026a0ed67ef7dabbf0b4ab554e3.zip
style cleanup
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/schema_migration.rb8
-rw-r--r--activerecord/test/cases/migration_test.rb2
-rw-r--r--activerecord/test/cases/schema_dumper_test.rb1
3 files changed, 5 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/schema_migration.rb b/activerecord/lib/active_record/schema_migration.rb
index 4464f54145..b2ae369eb6 100644
--- a/activerecord/lib/active_record/schema_migration.rb
+++ b/activerecord/lib/active_record/schema_migration.rb
@@ -31,10 +31,10 @@ module ActiveRecord
end
else
connection.create_table(table_name, :id => false) do |t|
- t.column "version", :string, :null => false
- t.column "migrated_at", :datetime, :null => false
- t.column "fingerprint", :string, :limit => 32
- t.column "name", :string
+ t.column :version, :string, :null => false
+ t.column :migrated_at, :datetime, :null => false
+ t.column :fingerprint, :string, :limit => 32
+ t.column :name, :string
end
connection.add_index(table_name, "version", :unique => true, :name => index_name)
end
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 2c74bb6719..60e5a29965 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -346,7 +346,7 @@ class MigrationTest < ActiveRecord::TestCase
assert_nothing_raised {
Person.connection.create_table :binary_testings do |t|
- t.column "data", :binary, :null => false
+ t.column :data, :binary, :null => false
end
}
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb
index 373463c8ab..9056b92d65 100644
--- a/activerecord/test/cases/schema_dumper_test.rb
+++ b/activerecord/test/cases/schema_dumper_test.rb
@@ -1,5 +1,4 @@
require "cases/helper"
-# require "cases/migration/helper"
class SchemaDumperTest < ActiveRecord::TestCase
def setup