This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ChangeGroupType < ActiveRecord::Migration[5.0] | |
| def up | |
| add_column :messages, :groups, :integer, array: true | |
| Message.find_each do |msg| | |
| msg.groups << msg.group | |
| msg.save! | |
| end | |
| remove_column :messages, :group, :integer | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const theme = createMuiTheme({ | |
| palette: { | |
| primary: { main: '#FAFAFA' }, | |
| secondary: lightBlue | |
| }, | |
| overrides: { | |
| MuiTooltip: { | |
| tooltip: { // Name of the component ⚛️ / style sheet | |
| fontSize: 12, // Some CSS | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const styles = theme => ({ | |
| selected: { | |
| boxShadow: `18px 0px 0 #6699FF inset`, | |
| backgroundColor: `rgba(102,153,255,0.2) !important` | |
| } | |
| }); | |
| render(){ | |
| return ( | |
| <div key={msg.id}> |
OlderNewer