Class: DbSchema::Changes::CreateTable
- Inherits:
-
Object
- Object
- DbSchema::Changes::CreateTable
- Defined in:
- lib/db_schema/changes.rb
Instance Attribute Summary collapse
-
#checks ⇒ Object
readonly
Returns the value of attribute checks.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#indices ⇒ Object
readonly
Returns the value of attribute indices.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, fields: [], indices: [], checks: []) ⇒ CreateTable
constructor
A new instance of CreateTable.
Constructor Details
#initialize(name, fields: [], indices: [], checks: []) ⇒ CreateTable
Returns a new instance of CreateTable.
247 248 249 250 251 252 |
# File 'lib/db_schema/changes.rb', line 247 def initialize(name, fields: [], indices: [], checks: []) @name = name @fields = fields @indices = indices @checks = checks end |
Instance Attribute Details
#checks ⇒ Object (readonly)
Returns the value of attribute checks.
245 246 247 |
# File 'lib/db_schema/changes.rb', line 245 def checks @checks end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
245 246 247 |
# File 'lib/db_schema/changes.rb', line 245 def fields @fields end |
#indices ⇒ Object (readonly)
Returns the value of attribute indices.
245 246 247 |
# File 'lib/db_schema/changes.rb', line 245 def indices @indices end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
245 246 247 |
# File 'lib/db_schema/changes.rb', line 245 def name @name end |