Sha256: 9ef07d4c040ac809dd630c430c4986341d5bafa68c2b784b25f1bdebd431d3a5

Contents?: true

Size: 386 Bytes

Versions: 9

Compression:

Stored size: 386 Bytes

Contents

class CreateFormField < ActiveRecord::Migration
  def change
    create_table :form_fields do |t|
      t.references :structure, index: true

      t.integer    :position
      t.string     :type
      t.boolean    :required, default: false

      I18n.available_locales.each do |locale|
        t.string   :"label_#{locale}"
      end

      t.timestamps null: false
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_admin_cms-0.1.1 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.9 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.7 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.6 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.5 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.4 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.3 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.2 db/migrate/20160102010317_create_form_field.rb
rails_admin_cms-0.0.1 db/migrate/20160102010317_create_form_field.rb