On Monday, October 21, 2013 11:00:35 PM UTC-7, Douglas Teoh wrote: > Thanks Jeremy, that seems to work, but I found a couple of issues. > > In the generated "schema.rb" file, I end up with: > > create_table(:users) do > column :id, "NUMBER(38)", :null=>false > column :name, "VARCHAR2(255" > > primary_key [:id] > end > > The column type is incomplete. >
The schema dumper needs to be taught how to deal with that type. I'll take care of that. > The second issue is that if I go down this path, the migrations are no > longer database agnostic. Is there a hook or extension I can write against > the Oracle adapter to make this DB agnostic? > Why not just do: self.default_string_column_size = '255 CHAR' if database_type == :oracle Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/groups/opt_out.
