public
Fork of caring/acts_as_url_param
Description: Pretty url support for Ruby on Rails applications
Homepage: http://www.caring.com
Clone URL: git://github.com/chriseppstein/acts_as_url_param.git
Christopher Eppstein (author)
Wed Mar 19 07:06:27 -0700 2008
acts_as_url_param / test / schema.rb
100644 39 lines (33 sloc) 0.922 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ActiveRecord::Schema.define() do
  create_table :authors do |t|
    t.column :label, :string
    t.column :bio, :string
    t.column :url_name, :string
  end
  
  create_table :blog_posts do |t|
    t.column :title, :string
    t.column :url_name, :string
  end
  
  create_table :items do |t|
    t.column :name, :string
    t.column :content, :string
    t.column :type, :string, :default => 'Item', :null => false
    t.column :url_name, :string
  end
  
  create_table :redirects do |t|
    t.column :redirectable_type, :string
    t.column :redirectable_id, :integer
    t.column :redirectable_class, :string
    t.column :url_name, :string
    t.column :created_at, :timestamp
  end
  
  create_table :stories do |t|
    t.column :title, :string
    t.column :story_url, :string
  end
  
  create_table :users do |t|
    t.column :name, :string
    t.column :login, :string
    t.column :url_name, :string
  end
end