Skip to content

Instantly share code, notes, and snippets.

@joshsusser
Created May 29, 2011 19:20
Show Gist options
  • Select an option

  • Save joshsusser/998055 to your computer and use it in GitHub Desktop.

Select an option

Save joshsusser/998055 to your computer and use it in GitHub Desktop.

Revisions

  1. joshsusser revised this gist May 29, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # in rails application.rb

    initializer "postgresql.no_default_string_limit" do
    ActiveSupport.on_load :active_record do
    ActiveSupport.on_load(:active_record) do
    ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::NATIVE_DATABASE_TYPES[:string].delete(:limit)
    end
    end
  2. joshsusser created this gist May 29, 2011.
    7 changes: 7 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # 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