Class: CreatePullNotifications

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/apn_on_rails/install/templates/009_create_pull_notifications.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/generators/apn_on_rails/install/templates/009_create_pull_notifications.rb', line 13

def self.down
  drop_table :apn_pull_notifications
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/apn_on_rails/install/templates/009_create_pull_notifications.rb', line 2

def self.up
  create_table :apn_pull_notifications do |t|
    t.integer :app_id
    t.string  :title
    t.string  :content
    t.string  :link

    t.timestamps
  end
end