Class: Migsupo::Differ::Operations::DropTable
- Inherits:
-
Object
- Object
- Migsupo::Differ::Operations::DropTable
- Defined in:
- lib/migsupo/differ/operations/drop_table.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table) ⇒ DropTable
constructor
A new instance of DropTable.
- #migration_type ⇒ Object
- #reversible? ⇒ Boolean
- #table_name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(table) ⇒ DropTable
Returns a new instance of DropTable.
7 8 9 10 |
# File 'lib/migsupo/differ/operations/drop_table.rb', line 7 def initialize(table) @table = table freeze end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
5 6 7 |
# File 'lib/migsupo/differ/operations/drop_table.rb', line 5 def table @table end |
Instance Method Details
#migration_type ⇒ Object
16 17 18 |
# File 'lib/migsupo/differ/operations/drop_table.rb', line 16 def migration_type :drop_table end |
#reversible? ⇒ Boolean
20 21 22 |
# File 'lib/migsupo/differ/operations/drop_table.rb', line 20 def reversible? true end |
#table_name ⇒ Object
12 13 14 |
# File 'lib/migsupo/differ/operations/drop_table.rb', line 12 def table_name @table.name end |
#to_s ⇒ Object
24 25 26 |
# File 'lib/migsupo/differ/operations/drop_table.rb', line 24 def to_s "drop_table #{table_name}" end |