Class: CreateSuningPayNotices
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateSuningPayNotices
- Defined in:
- lib/generators/suning_pay/templates/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
13 14 15 |
# File 'lib/generators/suning_pay/templates/migration.rb', line 13 def self.down drop_table :suning_pay_notices end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/suning_pay/templates/migration.rb', line 2 def self.up create_table :suning_pay_notices do |t| t.text :content t.string :sign t.string :sign_type, :limit=>30 t.string :vk_version, :limit=>30 t.string :deal_flag, :limit=>30 t. end end |