Sha256: c55df445f2faeb3f3bac67c20dc266fc5a337b2fdc5bf55a3781f2a340b88cc9

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def change
    create_table :c80_news_tz_comments, :options => 'COLLATE=utf8_unicode_ci' do |t|
      t.text :message, :limit => 1100
      t.references :fact, :index => true
      t.references :r_blurb, :index => true
      t.references :user, :index => true
      t.string :user_name # если удалить пользователя - здесь сохранится его имя
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 db/migrate/20160325122727_create_comments.rb
c80_news_tz-0.1.1.25 db/migrate/20160325122727_create_comments.rb
c80_news_tz-0.1.1.24 db/migrate/20160325122727_create_comments.rb