forked from norman/friendly_id
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.rb
47 lines (38 loc) · 1.36 KB
/
schema.rb
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
40
41
42
43
44
45
46
47
ActiveRecord::Schema.define(:version => 1) do
create_table "books", :force => true do |t|
t.column "title", "string"
t.column "type", "text"
end
create_table "things", :force => true do |t|
t.column "name", "string"
end
create_table "posts", :force => true do |t|
t.column "title", "string"
t.column "content", "text"
t.column "created_at", "datetime"
t.column "updated_at", "datetime"
end
create_table "users", :force => true do |t|
t.column "login", "string"
t.column "email", "string"
t.column "created_at", "datetime"
t.column "updated_at", "datetime"
end
create_table "people", :force => true do |t|
t.column "name", "string"
t.column "country_id", "integer"
end
create_table "countries", :force => true do |t|
t.column "name", "string"
end
create_table "slugs", :force => true do |t|
t.column "name", "string"
t.column "sluggable_id", "integer"
t.column "sequence", "integer", :null => false, :default => 1
t.column "sluggable_type", "string", :limit => 40
t.column "scope", "string", :limit => 40
t.column "created_at", "datetime"
end
add_index "slugs", ["sluggable_id"], :name => "index_slugs_on_sluggable_id"
add_index "slugs", ["name", "sluggable_type", "scope", "sequence"], :name => "index_slugs_on_n_s_s_and_s", :unique => true
end