Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rich_text field #127

Merged
merged 1 commit into from
May 9, 2019

Conversation

timfjord
Copy link
Contributor

Currently, there is no way to define a rich_text field via migration.
This PR adds support for that

class CreateFooContentType < ActiveRecord::Migration
  include ContentfulModel::Migrations::Migration

  def up
    create_content_type('foo') do |ct|
      ct.field('bar', :rich_text)
    end
  end

  def down
  end
end

@dlitvakb
Copy link
Contributor

dlitvakb commented May 9, 2019

Thanks for the contribution! Merging!

@dlitvakb dlitvakb merged commit 8cb77e2 into contentful:master May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants