Sha256: 18180e4d90c256753d2a7375153fd18564c8da432d8c8890dd72cc8486ada2c3
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
class CreateLesliCalendarEventActivities < ActiveRecord::Migration[6.0] def change table_base_structure = JSON.parse(File.read(Rails.root.join('db','structure','00000004_activities.json'))) create_table :cloud_driver_event_activities do |t| table_base_structure.each do |column| t.send( column["type"].parameterize.underscore.to_sym, column["name"].parameterize.underscore.to_sym ) end t.timestamps end add_reference :cloud_driver_event_activities, :cloud_driver_events, foreign_key: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lesli_calendar-0.2.2 | db/tables/0301110410_create_lesli_driver_event_activities.rb |
lesli_calendar-0.2.1 | db/tables/0301110410_create_lesli_driver_event_activities.rb |