Sha256: db8c59bb9eba5353b025d2f4a192ff74355cc594ec72a6e3f24d649b2ca37cf5
Contents?: true
Size: 1.2 KB
Versions: 6
Compression:
Stored size: 1.2 KB
Contents
class TheCommentsCreateComments < ActiveRecord::Migration def change create_table :comments do |t| # relations t.integer :user_id t.integer :holder_id # polymorphic, commentable object t.integer :commentable_id t.string :commentable_type # denormalization t.string :commentable_url t.string :commentable_title t.string :commentable_state # comment t.string :anchor t.string :title t.string :contacts t.text :raw_content t.text :content # moderation token t.string :view_token # state machine => :draft | :published | :deleted t.string :state, default: :draft # base user data (BanHammer power) t.string :ip, default: :undefined t.string :referer, default: :undefined t.string :user_agent, default: :undefined t.integer :tolerance_time # unusable: for future versions t.boolean :spam, default: false # nested set t.integer :parent_id t.integer :lft t.integer :rgt t.integer :depth, default: 0 t.timestamps end end end
Version data entries
6 entries across 6 versions & 3 rubygems