Class: CreateSuningPayNotices

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/suning_pay/templates/migration.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/generators/suning_pay/templates/migration.rb', line 13

def self.down
  drop_table :suning_pay_notices
end

.upObject



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.timestamps
  end
end