Module: ActiveShard::ActiveRecord::ShardSupport::ClassMethods
- Defined in:
- lib/active_shard/active_record/shard_support.rb
Instance Method Summary collapse
-
#schema_name(schema_name = :not_specified) ⇒ Object
Specifies the schema name for the current model class (and its subclasses).
Instance Method Details
#schema_name(schema_name = :not_specified) ⇒ Object
Specifies the schema name for the current model class (and its subclasses)
21 22 23 24 |
# File 'lib/active_shard/active_record/shard_support.rb', line 21 def schema_name( schema_name=:not_specified ) write_inheritable_attribute( :schema_name, schema_name ) unless ( schema_name == :not_specified ) read_inheritable_attribute( :schema_name ) end |