Sha256: f6a3be9ea4debb4f491c9530b89ff5ccc4178d05aebb7483b7070a205a81c004

Contents?: true

Size: 710 Bytes

Versions: 8

Compression:

Stored size: 710 Bytes

Contents

require "active_record/mlang"
module ActiveRecord
  module Mlang
    class LangText < ActiveRecord::Base
      include ActiveRecord::Mlang::Text
#       def self.drop_table!
#         connection.schema_cache.clear_table_cache!(table_name)
#         connection.drop_table table_name
#       end

#       def self.create_table!
#         connection.schema_cache.clear_table_cache!(table_name)
#         connection.create_table table_name do |t|
#           t.integer :parent_id, null: false
#           t.integer :lang_id, null: false
#           t.string  :label
#           t.timestamps
#         end
#         connection.add_index table_name, [:parent_id,:lang_id], unique: true
#       end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activerecord-mlang-0.0.9 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.8 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.7 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.6 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.5 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.4 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.3 lib/active_record/mlang/lang_text.rb
activerecord-mlang-0.0.2 lib/active_record/mlang/lang_text.rb