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