diff options
author | Cody Cutrer <cody@instructure.com> | 2014-11-10 12:06:58 -0700 |
---|---|---|
committer | Cody Cutrer <cody@instructure.com> | 2014-11-10 14:56:21 -0700 |
commit | 76e7305ea16b41a3674f4213ab7faa8c65196d75 (patch) | |
tree | 69c3812f542a2a8d4a21fd6da7dbf6b2b3977394 /activerecord/test/cases/migration | |
parent | 82e20030d4dc022c3a25ecc82315bda553a8659d (diff) | |
download | rails-76e7305ea16b41a3674f4213ab7faa8c65196d75.tar.gz rails-76e7305ea16b41a3674f4213ab7faa8c65196d75.tar.bz2 rails-76e7305ea16b41a3674f4213ab7faa8c65196d75.zip |
add a Table#name accessor like TableDefinition#name
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/change_table_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/change_table_test.rb b/activerecord/test/cases/migration/change_table_test.rb index 777a48ad14..6613783fba 100644 --- a/activerecord/test/cases/migration/change_table_test.rb +++ b/activerecord/test/cases/migration/change_table_test.rb @@ -213,6 +213,12 @@ module ActiveRecord t.rename :bar, :baz end end + + def test_table_name_set + with_change_table do |t| + assert_equal :delete_me, t.name + end + end end end end |