Sha256: 063b75bae573a4cd8fe1991fe6d978541f1456028494476d3ed2b5ebaf0e4bd9

Contents?: true

Size: 1.21 KB

Versions: 9

Compression:

Stored size: 1.21 KB

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
  create_table :category_translations, :force => true do |t|
    t.string :locale
    t.references :category
    t.string :name
  end
  
  create_table :some_models, :force => true
  create_table :some_model_translations, :force => true do |t|
    t.string :locale
    t.references :some_models
    t.string :name
  end
  
  create_table :books, :force => true
  create_table :book_translations, :force => true do |t|
    t.string :locale
    t.references :book
    t.string :name
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple_model_translations-0.2.8 spec/data/schema.rb
simple_model_translations-0.2.7 spec/data/schema.rb
simple_model_translations-0.2.6 spec/data/schema.rb
simple_model_translations-0.2.5 spec/data/schema.rb
simple_model_translations-0.2.4 spec/data/schema.rb
simple_model_translations-0.2.3 spec/data/schema.rb
simple_model_translations-0.2.2 spec/data/schema.rb
simple_model_translations-0.2.1 spec/data/schema.rb
simple_model_translations-0.2.0 spec/data/schema.rb