2013-11-27 14:58:21 +01:00
|
|
|
ActiveRecord::Schema.define do
|
2013-11-28 09:26:18 +01:00
|
|
|
create_table :categories, :force => true do |t|
|
|
|
|
t.string :name
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
2013-11-27 14:58:21 +01:00
|
|
|
create_table :pages, :force => true do |t|
|
2013-11-28 09:26:18 +01:00
|
|
|
t.integer :category_id
|
2013-11-27 14:58:21 +01:00
|
|
|
t.string :name
|
|
|
|
t.text :content
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
2013-11-28 09:26:18 +01:00
|
|
|
create_table :links, :force => true do |t|
|
|
|
|
t.integer :page_id
|
|
|
|
t.string :name
|
|
|
|
t.string :url
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
|
2013-11-27 14:58:21 +01:00
|
|
|
create_table :moderations, :force => true do |t|
|
|
|
|
t.integer :moderatable_id
|
|
|
|
t.string :moderatable_type
|
|
|
|
t.text :data
|
2014-08-11 09:12:41 +02:00
|
|
|
t.text :data_display
|
2013-11-27 14:58:21 +01:00
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|