Sha256: d298268d4f712fc2caf7a64f8ea7e19323145b9b1b442aa019c9ff3853f8197f
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
class CreateInfosTable < ActiveRecord::Migration def self.up create_table :infos do |t| t.integer :alert_id t.string :language t.string :categories t.string :event t.string :response_types t.string :urgency t.string :severity t.string :certainty t.string :audience t.string :event_codes t.datetime :effective_at t.datetime :onset_at t.datetime :expires_at t.string :sender_name t.text :headline t.text :description t.text :instruction t.string :web t.string :contact t.text :parameters t.timestamps end end def self.down drop_table :infos end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rcap-rails-generators-1.3 | lib/generators/rcap/migrations/templates/infos_migration.rb |