2014-03-23 00:22:25 +00:00
|
|
|
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
|
2015-08-15 19:28:21 +00:00
|
|
|
t.column :version, :integer
|
2014-03-23 00:22:25 +00:00
|
|
|
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
|