kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
69 lines
1.9 KiB
18 years ago
|
ActiveRecord::Schema.define(:version => 0) do
|
||
|
create_table :pages, :force => true do |t|
|
||
|
t.column :version, :integer
|
||
|
t.column :title, :string, :limit => 255
|
||
|
t.column :body, :text
|
||
|
t.column :updated_on, :datetime
|
||
|
t.column :author_id, :integer
|
||
|
t.column :revisor_id, :integer
|
||
|
end
|
||
|
|
||
|
create_table :page_versions, :force => true do |t|
|
||
|
t.column :page_id, :integer
|
||
|
t.column :version, :integer
|
||
|
t.column :title, :string, :limit => 255
|
||
|
t.column :body, :text
|
||
|
t.column :updated_on, :datetime
|
||
|
t.column :author_id, :integer
|
||
|
t.column :revisor_id, :integer
|
||
|
end
|
||
|
|
||
|
create_table :authors, :force => true do |t|
|
||
|
t.column :page_id, :integer
|
||
|
t.column :name, :string
|
||
|
end
|
||
|
|
||
|
create_table :locked_pages, :force => true do |t|
|
||
|
t.column :lock_version, :integer
|
||
|
t.column :title, :string, :limit => 255
|
||
|
t.column :type, :string, :limit => 255
|
||
|
end
|
||
|
|
||
|
create_table :locked_pages_revisions, :force => true do |t|
|
||
|
t.column :page_id, :integer
|
||
|
t.column :version, :integer
|
||
|
t.column :title, :string, :limit => 255
|
||
|
t.column :version_type, :string, :limit => 255
|
||
|
t.column :updated_at, :datetime
|
||
|
end
|
||
|
|
||
|
create_table :widgets, :force => true do |t|
|
||
|
t.column :name, :string, :limit => 50
|
||
|
t.column :foo, :string
|
||
|
t.column :version, :integer
|
||
|
t.column :updated_at, :datetime
|
||
|
end
|
||
|
|
||
|
create_table :widget_versions, :force => true do |t|
|
||
|
t.column :widget_id, :integer
|
||
|
t.column :name, :string, :limit => 50
|
||
|
t.column :version, :integer
|
||
|
t.column :updated_at, :datetime
|
||
|
end
|
||
|
|
||
|
create_table :landmarks, :force => true do |t|
|
||
|
t.column :name, :string
|
||
|
t.column :latitude, :float
|
||
|
t.column :longitude, :float
|
||
|
t.column :version, :integer
|
||
|
end
|
||
|
|
||
|
create_table :landmark_versions, :force => true do |t|
|
||
|
t.column :landmark_id, :integer
|
||
|
t.column :name, :string
|
||
|
t.column :latitude, :float
|
||
|
t.column :longitude, :float
|
||
|
t.column :version, :integer
|
||
|
end
|
||
|
end
|