Sha256: 5336ac834ce5a81baf3d49300c171cb47e1a442b8d690588687353cf96ae4fe3

Contents?: true

Size: 362 Bytes

Versions: 13

Compression:

Stored size: 362 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

13 entries across 13 versions & 2 rubygems

Version Path
frolic-redhillonrails_core-0.0.1 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.9.1 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.9 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.8 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.6 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.5 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.4.1 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.4 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.3.1 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.3 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.2 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.1 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb
redhillonrails_core-1.0.0 lib/red_hill_consulting/core/active_record/connection_adapters/column.rb