Method: CreateContexts#change
- Defined in:
- lib/generators/esp_auth/install/templates/db/migrate/create_contexts.rb
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/esp_auth/install/templates/db/migrate/create_contexts.rb', line 2 def change create_table :contexts do |t| t.string :title t.string :ancestry t.string :weight t. end add_index :contexts, :weight add_index :contexts, :ancestry end |