0

how is it possible to work from rails and use sqlserver views?

rake db:schema:dump

doesn't generate schema for views

I've used rails_sql_views gem but something is buggy. probably because of sqlserver

1 Answer 1

1

Yes, it possible, and sometimes convenient. I'm using views to fetch some data from legacy database. But views are read-only.

Sign up to request clarification or add additional context in comments.

1 Comment

class SomeModel < ActiveRecord::Base self.table_name = 'view_name' end

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.