aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/plugins/globalize2/test/data/schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plugins/globalize2/test/data/schema.rb')
-rw-r--r--vendor/plugins/globalize2/test/data/schema.rb55
1 files changed, 55 insertions, 0 deletions
diff --git a/vendor/plugins/globalize2/test/data/schema.rb b/vendor/plugins/globalize2/test/data/schema.rb
new file mode 100644
index 000000000..910dd0855
--- /dev/null
+++ b/vendor/plugins/globalize2/test/data/schema.rb
@@ -0,0 +1,55 @@
+ActiveRecord::Schema.define do
+ create_table :blogs, :force => true do |t|
+ t.string :description
+ end
+
+ create_table :posts, :force => true do |t|
+ t.references :blog
+ end
+
+ create_table :post_translations, :force => true do |t|
+ t.string :locale
+ t.references :post
+ t.string :subject
+ t.text :content
+ end
+
+ create_table :parents, :force => true do |t|
+ end
+
+ create_table :parent_translations, :force => true do |t|
+ t.string :locale
+ t.references :parent
+ t.text :content
+ t.string :type
+ end
+
+ create_table :comments, :force => true do |t|
+ t.references :post
+ end
+
+ create_table :comment_translations, :force => true do |t|
+ t.string :locale
+ t.references :comment
+ t.string :subject
+ t.text :content
+ end
+
+ create_table :validatees, :force => true do |t|
+ end
+
+ create_table :validatee_translations, :force => true do |t|
+ t.string :locale
+ t.references :validatee
+ t.string :string
+ end
+
+ create_table :users, :force => true do |t|
+ t.string :email
+ end
+
+ create_table :users_translations, :force => true do |t|
+ t.references :user
+ t.string :name
+ end
+end