This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT column_name AS [Name], | |
IS_NULLABLE AS [Null?], | |
DATA_TYPE + '(' + CASE | |
WHEN Cast(CHARACTER_MAXIMUM_LENGTH AS VARCHAR(5)) = -1 THEN 'Max' | |
ELSE Cast(CHARACTER_MAXIMUM_LENGTH AS VARCHAR(5)) | |
END + ')' AS [Type] | |
FROM INFORMATION_SCHEMA.Columns | |
WHERE table_name = 'table_name_here' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem をインストールして spec_helper.rb に | |
require "simplecov" | |
SimpleCov.start "rails" |
NewerOlder