diff options
author | Josh Susser <josh@hasmanythrough.com> | 2012-12-03 21:26:35 -0800 |
---|---|---|
committer | Josh Susser <josh@hasmanythrough.com> | 2012-12-03 21:26:35 -0800 |
commit | 94ef7b515b9bd026a0ed67ef7dabbf0b4ab554e3 (patch) | |
tree | b278c0b6c32c32639597a80c747daef564836306 /activerecord | |
parent | f02d2185ebbe01f455a9a91216ff7094b014ea72 (diff) | |
download | rails-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.rb | 8 | ||||
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 1 |
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 |