Wtih the new release 0.81 of domain-migrations plugin you can use sql-like domains in yor migrations and choose to 'inline' the column type in sql generation: you don't need support for "CREATE DOMAIN" sentence in your database engine. So, this:
is fully equivalent to:
You don't need repeat the same column options anymore!
create_domain :money, :numeric, :precision => 5, :scale => 2
crete_table :products do |t|
t.money :price
is fully equivalent to:
crete_table :products do |t|
t.numeric, :price, :precision => 5, :scale => 2
You don't need repeat the same column options anymore!
0 comentarios:
Publicar un comentario en la entrada