Module: Apartment
- Defined in:
- lib/apartment.rb,
lib/apartment/railtie.rb,
lib/apartment/version.rb,
lib/apartment/database.rb,
lib/apartment/migrator.rb,
lib/apartment/elevators/subdomain.rb,
lib/apartment/adapters/mysql_adapter.rb,
lib/apartment/adapters/abstract_adapter.rb,
lib/apartment/adapters/postgresql_adapter.rb
Defined Under Namespace
Modules: Adapters, Database, Elevators, Migrator Classes: AdapterNotFound, ApartmentError, Railtie, SchemaExists, SchemaNotFound
Constant Summary collapse
- VERSION =
"0.6.0"
Class Attribute Summary collapse
-
.database_names ⇒ Object
Be careful not to use ‘return` here so both Proc and lambda can be used without breaking.
-
.excluded_models ⇒ Object
Default to none.
-
.seed_after_create ⇒ Object
Returns the value of attribute seed_after_create.
-
.use_postgres_schemas ⇒ Object
Returns the value of attribute use_postgres_schemas.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
configure apartment with available options.
Class Attribute Details
.database_names ⇒ Object
Be careful not to use ‘return` here so both Proc and lambda can be used without breaking
16 17 18 19 20 21 22 |
# File 'lib/apartment.rb', line 16 def database_names if @database_names.respond_to?(:call) @database_names.call else @database_names end end |
.excluded_models ⇒ Object
Default to none
25 26 27 |
# File 'lib/apartment.rb', line 25 def excluded_models @excluded_models || [] end |
.seed_after_create ⇒ Object
Returns the value of attribute seed_after_create.
6 7 8 |
# File 'lib/apartment.rb', line 6 def seed_after_create @seed_after_create end |
.use_postgres_schemas ⇒ Object
Returns the value of attribute use_postgres_schemas.
6 7 8 |
# File 'lib/apartment.rb', line 6 def use_postgres_schemas @use_postgres_schemas end |