Skip to content

Instantly share code, notes, and snippets.

@rbmrclo
Created August 6, 2013 06:17
Show Gist options
  • Save rbmrclo/6162467 to your computer and use it in GitHub Desktop.
Save rbmrclo/6162467 to your computer and use it in GitHub Desktop.
Postgresql remove string limit of 255 chars
# 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