Rails 6, development with sqlite3. My schema.rb has a file that shouldn't be there: no migration files (On current git branch) says it should be gene ...
Rails 6, development with sqlite3. My schema.rb has a file that shouldn't be there: no migration files (On current git branch) says it should be gene ...
On Rails 6, i expect rake db:setup to perform db:create, db:migrate and db:seed i have only one data model and the record creation for its table was w ...
I added a field called 'custom_design_enabled' to a 'members' table in my schema.rb file as a boolean with default true. When I attempt to change this ...
I have a table Contacts and a table Entities. One Entity can have many Contacts, while the samee Entity should store one peculiar Contact as a supervi ...
I created a model in my Rails app and realized after some time that I had forgotten to add some attributes, and later added them via a generated migra ...
Working on a Rails 5 app, I want to use structure.sql instead of schema.rb (we're using PostGIS with lots of custom SQL calls...). In config/initializ ...
I have a Rails 5 application that uses three different existing databases. No migrations were needed in this application. I want to build db/schema.rb ...
I use Rails 4.0 and Ruby 2.3.0 I have a small Rails App. At first I wanted to assign different roles to each user based what he/she had signed up for ...
I deleted my Schema.rb by mistake (sort of) and I can't seem to be able to regenerate it into db/ by using rake db:dump, I don't really know what to d ...
I have a Ruby on Rails app and development database is in Mysql. I decided to do use sqlite database for testing. To accomplish that, I did the follow ...
First of all, I've been learning Rails for 8 months but feel like I started yesterday, so please bear with me. I'm trying to resolve why my value, cal ...
Currently I'm working with a huge rails application and multiple branches with each a new feature for this application. It happens a lot a feature wil ...
If using the this option in config/application.rb: then when you do: it only dumps the db/structure.sql. I know it isn't using the db/schema.rb ...
I am developing a Ruby on Rails application, and using the foreigner plugin to set up foreign key constraints in the migrations for example like this. ...
I'm sorry if this is a stupid question, but in my schema.rb I have several tables like Is it possible to view the contents of each table i.e view ...
I am using Rails 3.0.5. I am using MySQL as a database storage. I have a model in which one of the columns needs to be BIGINT. I am using the followin ...
I'm a newbie in Rails and I'm trying to deploy my first project. I'm using rails 3, ruby 1.8.7, Passanger, Mysql and Git I followed a lot of tutorial ...
It's possible to replace db/migrate/* with the contents of db/schema.rb, so that you only have one migration step. Do any of you ever do this? Why? ...
I'm trying to add an extra field to one of my tables. I've added the field in the migration file (under db\migrate), then ran 'rake db:migrate' which ...
I don't want to add schema.rb to .gitignore, because I want to be able to load a new database schema from that file. However, keeping it checked in is ...