StackOverflow Questions for Tag: schema.rb

user852974
user852974

Reputation: 2282

Viewing the contents of tables in schema.rb in rails

Score: 1

Views: 8296

Answers: 4

Read More
Gary S. Weaver
Gary S. Weaver

Reputation: 8096

How to make rake db:migrate generate schema.rb when using :sql schema format

Score: 10

Views: 6521

Answers: 2

Read More
Otto
Otto

Reputation: 19331

What is the preferred way to manage schema.rb in git?

Score: 52

Views: 18536

Answers: 9

Read More
neutralCreep
neutralCreep

Reputation: 77

Unable to delete tables in schema.rb from rails app

Score: 0

Views: 1043

Answers: 2

Read More
Michael
Michael

Reputation: 129

Rails 6, Schema file not matching migration files after switching Git branch

Score: 0

Views: 495

Answers: 2

Read More
Ridhwaan Shakeel
Ridhwaan Shakeel

Reputation: 1043

Rake db:setup does not run rails db:migrate, schema.rb does not exist error

Score: 2

Views: 2757

Answers: 1

Read More
Jocko
Jocko

Reputation: 537

When using my schema.rb inside a migration, I get an error regarding the ID field

Score: 1

Views: 53

Answers: 0

Read More
PaulM
PaulM

Reputation: 1

Method value is 'nil' rather than 'true' or 'false' after adding the field to a migration table

Score: 0

Views: 165

Answers: 1

Read More
Aurel
Aurel

Reputation: 31

How to do has_many and has_one between the same tables?

Score: 1

Views: 121

Answers: 2

Read More
Doug
Doug

Reputation: 186

In Rails 5, setting config.active_record.schema_format = :sql but still getting schema.rb created on db:migrate

Score: 7

Views: 6032

Answers: 2

Read More
dbate
dbate

Reputation: 127

How do I re-order table columns in a Rails app?

Score: 3

Views: 1122

Answers: 1

Read More
Evolve
Evolve

Reputation: 9193

Rails: I update migration file then run db:migrate, but my schema isn't updating

Score: 24

Views: 43831

Answers: 7

Read More
Asmita
Asmita

Reputation: 183

PG::UndefinedColumn: ERROR in case of same DB is used for two different projects which are connected with each other in Rails

Score: 1

Views: 458

Answers: 2

Read More

Can I Rebuild db/schema.rb to Include Multiple Databases Without Migrations?

Score: 5

Views: 1451

Answers: 1

Read More
Andrey Deineko
Andrey Deineko

Reputation: 52357

Migration are run regardless of the branch

Score: 1

Views: 1547

Answers: 3

Read More
Jason Procka
Jason Procka

Reputation: 335

How can I recreate Schema.rb (after deleting) in Ruby on Rails?

Score: 6

Views: 7457

Answers: 2

Read More
Sriharsha
Sriharsha

Reputation: 111

Is it possible to have same index name within a sqlite database?

Score: 2

Views: 2049

Answers: 1

Read More
Vikko
Vikko

Reputation: 1406

schema.rb messed up due to migrations in other branches

Score: 17

Views: 8964

Answers: 3

Read More
Mike Nichols
Mike Nichols

Reputation: 119

Is it a good idea to have our CI server automatically run rails migrations and commit schema.rb?

Score: 1

Views: 120

Answers: 0

Read More
Jeremyzacch
Jeremyzacch

Reputation: 453

drop_table migration fails to remove table

Score: 2

Views: 553

Answers: 0

Read More
PreviousPage 1Next