Sha256: cfa69555481724b2bbe987c8d4c8438be337cc773b35e64217826099c44a1562

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

class C80SocialNetworksCreateTypes < ActiveRecord::Migration
  def change
    create_table :c80_social_networks_types, :options => 'COLLATE=utf8_unicode_ci' do |t|
      t.string :title
      t.string :tag
      t.string :awesome_icon_code # если не задана картинка image - будет использован стандартная иконка из font awesome
      t.string :image             # можно переопределить иконку font awesome
      t.boolean :_delete_image    # картинку можно удалить
      t.timestamps null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c80_social_networks-0.1.0.2 db/migrate/20161003060101_c80_social_networks_create_types.rb
c80_social_networks-0.1.0.1 db/migrate/20161003060101_c80_social_networks_create_types.rb