Skip to content

Commit

Permalink
remove hack for older versions of rails
Browse files Browse the repository at this point in the history
originally added in 2010
  • Loading branch information
flavorjones committed Mar 1, 2024
1 parent ae12904 commit d851a10
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/sqlite3/pragmas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,6 @@ def table_info table
stmt.each do |row|
new_row = columns.zip(row).to_h

# FIXME: This should be removed but is required for older versions
# of rails
if Object.const_defined?(:ActiveRecord)
new_row["notnull"] = new_row["notnull"].to_s
end

tweak_default(new_row) if needs_tweak_default

# Ensure the type value is downcased. On Mac and Windows
Expand Down

0 comments on commit d851a10

Please sign in to comment.