Sha256: 0ecc3bc7a93f6e6d7437d22187531cfd63224d95a680fe6a115fdb392e0336cf
Contents?: true
Size: 885 Bytes
Versions: 4
Compression:
Stored size: 885 Bytes
Contents
ActiveRecord::Schema.define(:version => 0) do create_table :articles, :force => true do |t| t.string :title end create_table :article_translations, :force => true do |t| t.references :article, :null => false t.string :locale, :null => false, :limit => 2 t.string :description t.text :text end create_table :teams, :force => true do |t| t.string :title end create_table :team_translations, :force => true do |t| t.references :team, :null => false t.string :locale, :null => false, :limit => 2 t.text :text end end class ArticleTranslation < ActiveRecord::Base attr_accessible :description, :text end class Article < ActiveRecord::Base translations :description, :text, :writer => true end class TeamTranslation < ActiveRecord::Base end class Team < ActiveRecord::Base translations :text, :fallback => true, :nil => nil end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
has_translations-0.3.5 | test/schema.rb |
has_translations-0.3.4 | test/schema.rb |
has_translations-0.3.3 | test/schema.rb |
has_translations-0.3.2 | test/schema.rb |