diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-22 15:44:06 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-23 06:06:20 +0900 |
commit | 8fade125c8cc6acbd1b0cc43f6569851d0f7e8ff (patch) | |
tree | 82ce4acb2ecaaf361439131ce4171180375741fd /activerecord/test | |
parent | d47357e2d3d1d5333780488daa77ad9c012c147e (diff) | |
download | rails-8fade125c8cc6acbd1b0cc43f6569851d0f7e8ff.tar.gz rails-8fade125c8cc6acbd1b0cc43f6569851d0f7e8ff.tar.bz2 rails-8fade125c8cc6acbd1b0cc43f6569851d0f7e8ff.zip |
Extract the short-hand methods into `ColumnMethods`
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/change_table_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/change_table_test.rb b/activerecord/test/cases/migration/change_table_test.rb index 08bb207dbb..b42dedd223 100644 --- a/activerecord/test/cases/migration/change_table_test.rb +++ b/activerecord/test/cases/migration/change_table_test.rb @@ -115,6 +115,14 @@ module ActiveRecord end end + def test_bigint_creates_bigint_column + with_change_table do |t| + @connection.expect :add_column, nil, [:delete_me, :foo, :bigint, {}] + @connection.expect :add_column, nil, [:delete_me, :bar, :bigint, {}] + t.bigint :foo, :bar + end + end + def test_string_creates_string_column with_change_table do |t| @connection.expect :add_column, nil, [:delete_me, :foo, :string, {}] |