Sha256: c8e1adf3d304bc6d8e5a80b81819dec8d5684f52dcbfbad7960f1afe64e97bd7
Contents?: true
Size: 473 Bytes
Versions: 2
Compression:
Stored size: 473 Bytes
Contents
require 'test_helper' class TableServiceTest < ActiveSupport::TestCase migration = Ryakuzu::TableService.new('users', 'admin') test 'raise error, when table exists, or table have reference' do assert_equal "Cannot drop table, maybe it has reference to other tables? Find admin_id in other tables and remove it.", migration.call end test 'return valid text for migration' do assert_equal 'rename_table :users, :admins', migration.text_migration end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ryakuzu-0.3.0 | test/services/table_service_test.rb |
ryakuzu-0.2.6 | test/services/table_service_test.rb |