This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/schema/migrations/005_add_authors.rb

16 lines
372 B
Ruby
Raw Permalink Normal View History

2008-06-27 00:13:15 -04:00
class AddAuthors < ActiveRecord::Migration
def self.up
create_table :authors do |t|
t.string :name, :limit => 64
t.string :url, :limit => 256
t.timestamp :created_at
t.string :salt, :limit => 512
t.string :encrypted_password, :limit => 512
end
add_index :authors, :name
end
def self.down
drop_table :authors
end
end