We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lexorank
To avoid confusion with the setup of column collations, that is needed to use this gem, it should be as simple as using
class AddRankToPages < ActiveRecord::Migration[7.0] def change add_column :pages, :rank, :lexorank add_index :pages, :rank, unique: true end end
or
$ rails g migration AddRankTo<insert model name here> rank:lexorank:uniq
This can be achieved by adding a custom column type to ActiveRecord. An example can be found in the Money-Rails gem.
The text was updated successfully, but these errors were encountered:
C
No branches or pull requests
To avoid confusion with the setup of column collations, that is needed to use this gem, it should be as simple as using
or
This can be achieved by adding a custom column type to ActiveRecord. An example can be found in the Money-Rails gem.
The text was updated successfully, but these errors were encountered: