Class: Ad::AgentArchitecture::Database::CreateSchema
- Inherits:
-
Object
- Object
- Ad::AgentArchitecture::Database::CreateSchema
- Defined in:
- lib/ad/agent_architecture/database/create_schema.rb
Overview
Create the database schema
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(db) ⇒ CreateSchema
constructor
A new instance of CreateSchema.
Constructor Details
#initialize(db) ⇒ CreateSchema
Returns a new instance of CreateSchema.
15 16 17 |
# File 'lib/ad/agent_architecture/database/create_schema.rb', line 15 def initialize(db) @db = db end |
Instance Attribute Details
#db ⇒ Object (readonly)
Returns the value of attribute db.
13 14 15 |
# File 'lib/ad/agent_architecture/database/create_schema.rb', line 13 def db @db end |
Instance Method Details
#execute ⇒ Object
19 20 21 22 |
# File 'lib/ad/agent_architecture/database/create_schema.rb', line 19 def execute create_tables define_models end |