Sha256: ef27073bd30729aeedc811e8f03dcd6532e72b469d83504267489cd46299b003

Contents?: true

Size: 379 Bytes

Versions: 70

Compression:

Stored size: 379 Bytes

Contents

module RedHillConsulting::Core::ActiveRecord::ConnectionAdapters
  module Column
    attr_accessor :unique_scope
    attr_accessor :case_sensitive
    alias case_sensitive? case_sensitive

    def unique?
      !unique_scope.nil?
    end

    def required_on
      if null
        nil
      elsif default.nil?
        :save
      else
        :update
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

Version Path
backlog-0.36.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
advertnet-1.0.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
advertnet-1.0.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
authorails-1.0.0 plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.3 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.4 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.5 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.7 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.6 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.10.8 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.12.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.11.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.12.2 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.12.1 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.12.4 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.12.3 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
backlog-0.13.0 vendor/plugins/redhillonrails_core/lib/red_hill_consulting/core/active_record/connection_adapters/column.rb