Sha256: 4690b4f602e893de5ad57c0866d376a6faed90a3358fe5cf16276ce6e736bf22
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
ActiveRecord::Schema.define(:version => 0) do create_table :comments do |t| t.text :body, :formatted_body t.references :commentable, :polymorphic => true t.references :user t.timestamps end add_index :comments, [:commentable_id, :commentable_type], :name => "index_on_commentable" add_index :comments, [:commentable_id, :commentable_type, :user_id], :name => "index_on_commentable_and_user" create_table :projects do |t| t.integer :comments_count, :null => false, :default => 0 end create_table :tasks do |t| t.integer :comments_count, :null => false, :default => 0 end create_table :lists do |t| t.integer :comments_count, :null => false, :default => 0 end create_table :users do |t| end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commentable-0.1.0 | spec/schema.rb |