Class: CreateMentions

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

Class Method Summary collapse

Class Method Details

.downObject



18
19
20
# File 'lib/generators/govkit/templates/create_mentions.rb', line 18

def self.down
  drop_table :mentions
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/govkit/templates/create_mentions.rb', line 2

def self.up
  create_table :mentions, :force => true do |t|
    t.string   "url",           :limit => 8000
    t.string   "excerpt",       :limit => 4000
    t.string   "title",         :limit => 1000
    t.string   "source"
    t.datetime "date"
    t.float    "weight"
    t.integer  "owner_id"
    t.string   "owner_type"
    t.string   "search_source"
    t.datetime "created_at"
    t.datetime "updated_at"
  end
end