Sha256: c14ef2bfb8036405b20ebe22135983a745283c58d82f6e20de093532a9011868

Contents?: true

Size: 1.06 KB

Versions: 27

Compression:

Stored size: 1.06 KB

Contents

# +--------------------+------------------+------+-----+---------+----------------+
# | Field              | Type             | Null | Key | Default | Extra          |
# +--------------------+------------------+------+-----+---------+----------------+
# | AZ_TITLE_SEARCH_ID | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
# | AZ_PROFILE         | varchar(100)     | NO   | MUL | NULL    |                |
# | AZ_TITLE_ID        | int(10) unsigned | NO   | MUL | 0       |                |
# | TITLE_SEARCH       | text             | NO   | MUL | NULL    |                |
# +--------------------+------------------+------+-----+---------+----------------+
module Sfx4
  module Abstract
    module AzTitleSearch
      def self.included(klass)
        klass.class_eval do
          self.table_name = 'AZ_TITLE_SEARCH'
          self.primary_key = 'AZ_TITLE_SEARCH_ID'

          belongs_to :az_title,
                     :foreign_key => 'AZ_TITLE_ID',
                     :class_name => "#{klass.to_s.deconstantize}::AzTitle"
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
umlaut-4.1.7 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.6 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.5 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.4 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.3 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.2 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.1 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.0 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.0.pre3 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.0.pre.2 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.1.0.pre.alpha.1 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.3 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.2 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.1 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.0 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.0.beta5 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.0.beta4 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.0.beta3 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.0.beta2 app/models/sfx4/abstract/az_title_search.rb
umlaut-4.0.0.beta1 app/models/sfx4/abstract/az_title_search.rb