Sha256: e0a2743f86f00d848a1b9bba8aa5179a56569a250e6d5cd0b9fc1976d4f46c03

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

require "active_record/mlang"
module ActiveRecord
  module Mlang
    class Lang < ActiveRecord::Base
      include ActiveRecord::Mlang
#       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.string  :code, null: false, limit: 5
#           t.boolean :east, null: false, default: false
#           t.integer :position , default: 1  , null: false
#           t.boolean :enable, null: false, default: true
#           t.timestamps
#         end
#         connection.add_index table_name, [:code], unique: true
#       end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activerecord-mlang-0.0.4 lib/active_record/mlang/lang.rb
activerecord-mlang-0.0.3 lib/active_record/mlang/lang.rb
activerecord-mlang-0.0.2 lib/active_record/mlang/lang.rb