wiki base sceleton
This commit is contained in:
parent
df27ec29f3
commit
eacea15a21
20 changed files with 432 additions and 0 deletions
11
db/migrate/20120216215008_create_wikis.rb
Normal file
11
db/migrate/20120216215008_create_wikis.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateWikis < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :wikis do |t|
|
||||
t.string :title
|
||||
t.text :content
|
||||
t.integer :project_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
6
db/migrate/20120219130957_add_slug_to_wiki.rb
Normal file
6
db/migrate/20120219130957_add_slug_to_wiki.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddSlugToWiki < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :wikis, :slug, :string
|
||||
|
||||
end
|
||||
end
|
6
db/migrate/20120219140810_add_wiki_enabled_to_project.rb
Normal file
6
db/migrate/20120219140810_add_wiki_enabled_to_project.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class AddWikiEnabledToProject < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :wiki_enabled, :boolean, :default => true, :null => false
|
||||
|
||||
end
|
||||
end
|
14
db/schema.rb
14
db/schema.rb
|
@ -11,7 +11,11 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
<<<<<<< HEAD
|
||||
ActiveRecord::Schema.define(:version => 20120216085842) do
|
||||
=======
|
||||
ActiveRecord::Schema.define(:version => 20120219140810) do
|
||||
>>>>>>> wiki base sceleton
|
||||
|
||||
create_table "issues", :force => true do |t|
|
||||
t.string "title"
|
||||
|
@ -80,6 +84,7 @@ ActiveRecord::Schema.define(:version => 20120216085842) do
|
|||
t.boolean "issues_enabled", :default => true, :null => false
|
||||
t.boolean "wall_enabled", :default => true, :null => false
|
||||
t.boolean "merge_requests_enabled", :default => true, :null => false
|
||||
t.boolean "wiki_enabled", :default => true, :null => false
|
||||
end
|
||||
|
||||
create_table "protected_branches", :force => true do |t|
|
||||
|
@ -158,4 +163,13 @@ ActiveRecord::Schema.define(:version => 20120216085842) do
|
|||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "wikis", :force => true do |t|
|
||||
t.string "title"
|
||||
t.text "content"
|
||||
t.integer "project_id"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.string "slug"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue