在 Rails 模型中使用虛擬資料庫欄位

4月 7, 2026
RubyMine 2026.1 讓您將 PostgreSQL 虛擬列作為您 Rails 模型中的原生屬性。

繼續用英語閱讀:

RubyMine by JetBrains is a Integrated Development Environment (IDE) specifically designed for Ruby and Ruby on Rails development. It offers a comprehensive suite of features to improve your coding efficiency, including smart code completion, syntax highlighting, code refactoring tools, built-in debugging and testing frameworks, and integration with popular libraries and databases. Whether you're a seasoned Rails developer or just starting out, RubyMine's intuitive interface and robust features can help you write cleaner, more maintainable code and accelerate your development.

The RubyMine 2026.1 release introduces support for virtual (non-persisted) generated columns in PostgreSQL 18 and later, bringing them fully into the Rails development experience. The IDE recognizes these columns as attributes within models, enabling accurate code completion, reliable type inference, and direct navigation to their definitions in 'schema.rb'.

To see a full list of what's new in version 2026.1, see our release notes.

RubyMine is licensed per user, and is available as a commercial annual subscription license. We can supply new subscriptions, subscription renewals, lapsed renewals, and additional user licenses. See our RubyMine licensing page for full details.

RubyMine is available to buy in the following products: