Skip to content

Instantly share code, notes, and snippets.

@willywos
Created August 7, 2013 18:57
Show Gist options
  • Save willywos/6177303 to your computer and use it in GitHub Desktop.
Save willywos/6177303 to your computer and use it in GitHub Desktop.
# config/initializers/database_limits.rb
module ActiveRecord
module ConnectionAdapters
module DatabaseLimits
def index_name_length
#this is a monkey patch to get the ms sql db schema to work in sqlite.
#errors with the names in sql server being to long for sqlite cause of
#of the original 64 character limit. Switch it to 84 to allow the longer
#names.
84
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment