Sha256: 0d6eb1f8af6d817971e7d41b4041954b126f18b075cef15673dd31fe6c124192

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

require 'active_record'
require 'pg'

ActiveRecord::Base.establish_connection(
  adapter:  'postgresql',
  database: 'fc2'
)

ActiveRecord::Migration.create_table :pages, force: true do |t|
  t.string :url
  t.text :content
  t.datetime :crawled_at
  t.datetime :parsed_at
  t.index :url, unique: true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tjcrawler-0.0.2 examples/schema.rb
tjcrawler-0.0.1 examples/schema.rb