Sha256: ba87c970fee5bc578c8b489f6e8e8473a57918a9245986381d3001755524e366
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
Sequel.migration do up do create_table(:frequency_periods) do primary_key :id String :name, null: false DateTime :created_at, null: false DateTime :updated_at, null: false end create_table(:clockwork_database_events) do primary_key :id Integer :frequency_quantity String :at, null: false, default: '' Integer :frequency_period_id, null: false foreign_key [:frequency_period_id], :frequency_periods, name: 'clockwork_database_events_frequency_period_id_fkey' DateTime :created_at, null: false DateTime :updated_at, null: false index :frequency_period_id end end down do drop_table(:clockwork_database_events) drop_table(:frequency_periods) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clockwork_database_events-0.1.0 | db/migrations/201505300840_initial.rb |