Class: CreateRealogyEntities
- Inherits:
-
Object
- Object
- CreateRealogyEntities
- Defined in:
- lib/generators/realogy/install/templates/create_realogy_entities.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/realogy/install/templates/create_realogy_entities.rb', line 2 def change create_table :realogy_entities do |t| t.string :type t.string :entity_id t.datetime :last_update_on t.json :data t. end add_index :realogy_entities, :type add_index :realogy_entities, :entity_id add_index :realogy_entities, :last_update_on end |