Sha256: 76581bf949dda2c675aeb1b7e0376d32a4a05519cf63e024ee160ecc3b6a91a3

Contents?: true

Size: 895 Bytes

Versions: 2

Compression:

Stored size: 895 Bytes

Contents

ActiveRecord::Migration.verbose = false

ActiveRecord::Schema.define do
  create_table :articles, :force => true do |t|
    t.string :slug
  end

  create_table :article_translations, :force => true do |t|
    t.string :locale
    t.references :article
    t.string :name
    t.text :content
  end
  
  create_table :posts, :force => true do |t|
    t.string :slug
  end

  create_table :post_translations, :force => true do |t|
    t.string :locale
    t.references :post
    t.string :name
    t.text :content
  end
  
  create_table :tags, :force => true do |t|
  end

  create_table :tag_translations, :force => true do |t|
    t.string :locale
    t.references :tag
    t.string :name
  end
  
  create_table :categories, :force => true do |t|
  end

  create_table :category_translations, :force => true do |t|
    t.string :locale
    t.references :category
    t.string :name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_model_translations-0.1.7 spec/data/schema.rb
simple_model_translations-0.1.6 spec/data/schema.rb