Class: CreateDependencies
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateDependencies
- Defined in:
- lib/generators/surveyor/templates/db/migrate/create_dependencies.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
20 21 22 |
# File 'lib/generators/surveyor/templates/db/migrate/create_dependencies.rb', line 20 def self.down drop_table :dependencies end |
.up ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/surveyor/templates/db/migrate/create_dependencies.rb', line 3 def self.up create_table :dependencies do |t| # Context t.integer :question_id # the dependent question t.integer :question_group_id # Conditional t.string :rule # Result - TODO: figure out the dependency hook presentation options # t.string :property_to_toggle # visibility, class_name, # t.string :effect #blind, opacity t. end end |