Class: Neko::Base::Schema
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- Neko::Base::Schema
- Defined in:
- lib/neko/base/schema.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
50 51 52 |
# File 'lib/neko/base/schema.rb', line 50 def self.down drop_table :flow end |
.up ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/neko/base/schema.rb', line 36 def self.up create_table :flow do |t| t.string :time_start t.string :time_end t.string :time_duration #ts,te,td,sa,da,sp,dp,pr,flg,fwd,stos,ipkt,ibyt,opkt,obyt,in,out,sas,das,smk,dmk,dtos,dir,nh,nhb,svln,dvln,ismc,odmc,idmc,osmc,mpls1,mpls2,mpls3,mpls4,mpls5,mpls6,mpls7,mpls8,mpls9,mpls10,ra,eng end end |