Sha256: 80b8ef937c82846749ac94ba78e754463667ecc6c7ff803da7e9ac66331972db

Contents?: true

Size: 353 Bytes

Versions: 5

Compression:

Stored size: 353 Bytes

Contents

# name           - string
# archival_id    - integer
# archive_number - string
# archived_at    - datetime
class MysqlArchival < ActiveRecord::Base
  establish_connection $dbconfig["mysql"]
  self.table_name = "archivals"
  acts_as_archival
  has_many :exploders, :dependent => :destroy, :foreign_key => :archival_id, :class_name => "MysqlExploder"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acts_as_archival-1.1.1 test/fixtures/mysql_archival.rb
acts_as_archival-1.1.0 test/fixtures/mysql_archival.rb
acts_as_archival-1.0.0 test/fixtures/mysql_archival.rb
acts_as_archival-0.6.1 test/fixtures/mysql_archival.rb
acts_as_archival-0.6.0 test/fixtures/mysql_archival.rb