Class: CreateShares

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/gitdocs/migration/001_create_shares.rb

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/gitdocs/migration/001_create_shares.rb', line 10

def self.down
  raise
end

.upObject



2
3
4
5
6
7
8
# File 'lib/gitdocs/migration/001_create_shares.rb', line 2

def self.up
  create_table :shares do |t|
    t.column :path, :string
    t.column :polling_interval, :double, :default => 15
    t.column :notification, :boolean, :default => true
  end
end