Class: Liquigen::Handlers::DropTable
- Inherits:
-
Base
- Object
- Base
- Liquigen::Handlers::DropTable
show all
- Defined in:
- lib/liquigen/handlers/drop_table.rb
Instance Attribute Summary
Attributes inherited from Base
#id, #props, #sets, #table
Instance Method Summary
collapse
Methods inherited from Base
#process
Constructor Details
#initialize(props) ⇒ DropTable
Returns a new instance of DropTable.
5
6
7
8
9
|
# File 'lib/liquigen/handlers/drop_table.rb', line 5
def initialize(props)
self.props = props
self.sets = []
self.id = build_id
end
|
Instance Method Details
#action_name ⇒ Object
11
12
13
|
# File 'lib/liquigen/handlers/drop_table.rb', line 11
def action_name
'DropTable'
end
|
#build_one_changeset(set) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/liquigen/handlers/drop_table.rb', line 19
def build_one_changeset(set)
props.each do |tbl|
change = Liquigen::DropTable.new tbl
set.changes << change
end
end
|
#file_suffix ⇒ Object
15
16
17
|
# File 'lib/liquigen/handlers/drop_table.rb', line 15
def file_suffix
props.map(&:camelize).join('And')
end
|