Skip to content

Instantly share code, notes, and snippets.

@christos
Forked from joshsusser/gist:998055
Created March 13, 2013 15:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christos/5152970 to your computer and use it in GitHub Desktop.
Save christos/5152970 to your computer and use it in GitHub Desktop.
# in rails application.rb
initializer "postgresql.no_default_string_limit" do
ActiveSupport.on_load(:active_record) do
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES[:string].delete(:limit)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment